Commit Graph

65 Commits

Author SHA1 Message Date
Romain Goyet
bfab275a88 [ion] Get rid of log
Change-Id: Icf37d4cedb1cc3ffbc9e020cdb7b4a89d543aa23
2017-03-17 16:00:47 +01:00
Romain Goyet
c7b4890708 [ion] Console can now read and write lines and chars
Change-Id: Ifca7bb4effc00b8bbcd76e0725d0740436ce37c9
2017-03-17 15:41:46 +01:00
Émilie Feral
6230eaa4b3 [kandinsky/font] Clean font
Change-Id: Ifbec48f21253caf527435e660a2961d2d6f6f436
2017-03-16 15:12:08 +01:00
Romain Goyet
ebb633ff23 [escher] Add RunLoop and Timer
Change-Id: Icb5b2e82cc9fe999eb4b1c7e9dff75ca92dcca43
2017-03-07 11:00:00 +01:00
Romain Goyet
7b575a204b Merge changes I4d59900f,Ifd3d4c6b,I485bd67f,Ib2dd1d91,I29085da3, ...
* changes:
  [ion/device] Fix building console.o
  [apps/hwtest] Add CHARGE and KEYBOARD commands to lowlevel test
  [apps/hwtest] Proper MCU_SERIAL command
  [ion] Add a Ion::serialNumber function
  [apps/hwtest] Add ADC and BACKLIGHT commands to the lowlevel test
  [ion/device] Use the proper ADC channel
  [ion] Add a console facility
  [apps/hwtest] Blink the LED from the lowlevel test
  [apps/hwtest] The lowlevel test uses the UART
  [ion/device] Add USART register
  [apps] Add a lowlevel test app
  [ion/device] Add SPI registers
2017-03-07 10:15:55 +01:00
Émilie Feral
40527e76b6 Merge changes Id5700072,Ib85055ab
* changes:
  [ion] Enable logging event names in DEBUG
  [ion] Ion::random()
2017-03-02 16:39:06 +01:00
Émilie Feral
c2ee9d2984 Merge changes I01ad7dfd,I0aaa139b
* changes:
  [ion/device] Minimal clock setup to enable RNG
  [ion] Use a C API for logging
2017-03-02 13:53:34 +01:00
Romain Goyet
eaeed82eea [ion] Add a Ion::serialNumber function
Change-Id: Ib2dd1d9187936f5c044bbcbc21dc7164fe6e9822
2017-02-28 18:56:04 +01:00
Romain Goyet
bca8a6fd86 [ion] Add a console facility
Change-Id: I34b406ae8589fdd2a5d6b826b34ac411359b58dc
2017-02-27 14:13:19 +01:00
Émilie Feral
f05086f910 Merge changes I3f379092,I917c09dd
* changes:
  [kandinsky] Change unicode symbol of e (exponential)
  [apps/sequence] Change default XNT text to 'n'
2017-02-20 17:54:46 +01:00
Romain Goyet
9c0b5b2008 [ion] Enable logging event names in DEBUG
Change-Id: Id5700072ada8fd8dd99dc076a808333e170214f8
2017-02-20 16:14:55 +01:00
Romain Goyet
809fd8a17a [ion] Ion::random()
Change-Id: Ib85055ab3b4bf3dfce991f9990659c744be20f39
2017-02-20 16:14:48 +01:00
Romain Goyet
abf8fcd259 [ion] Use a C API for logging
Change-Id: I0aaa139b3434b62618f5e8d6ac88fe164bca4c2b
2017-02-20 13:33:14 +01:00
Émilie Feral
dfda0223cc [kandinsky] Change unicode symbol of e (exponential)
Change-Id: I3f379092bc00975ce588a0fffdf425128079976c
2017-02-20 09:39:25 +01:00
Émilie Feral
7dd8ab9e7e Merge changes Id5618802,Ie8163568,I4d6cd1db,I3f2e7c80,Ia2ab2f4c, ...
* changes:
  [apps/probability] Comments to explain the 0.001 precision is proba
  [apps] Merge node navigation controller and box controller
  [poincare] Add test for functions (log, ln, root, abs, diff, int)
  [poincare] Correct naperian logarithm
  [kandinsky] Add a special char for e (2.7...)
  [Kandinsky] In font, for the i complex, use the i cyrillic instead of iota
  [apps/sequence/list] display the page change type when clicking on the sequence type row in the list parameters
  [apps/sequence/list] create a class change type parameter controller
  [escher] Create a class expression menu list cell
  [apps/sequence/list] Enable to delete all sequences
2017-02-20 09:34:46 +01:00
Émilie Feral
d656d0d2eb [kandinsky] Add a special char for e (2.7...)
Change-Id: Ia2ab2f4cdeadedde5228357d2aed97c3e602b67f
2017-02-17 16:35:06 +01:00
Émilie Feral
1f751589b9 [Kandinsky] In font, for the i complex, use the i cyrillic instead of
iota

Change-Id: I746e1060f1437fe090a2dee533c3bbec24bda7d4
2017-02-17 16:35:06 +01:00
Romain Goyet
b2823dc624 [Escher] Allow binary logging of events with a #define
Change-Id: Ia056b8681ac9274e8b24182f8d3e4e62e69bf6a5
2017-02-16 11:08:29 +01:00
Romain Goyet
a447c8d0b8 [ion] Ion::Log::print(int)
Change-Id: I5cdb33194d32b5ac219b92cb26d77fcc978cbcb4
2017-02-16 11:00:53 +01:00
Romain Goyet
6343a84735 [ion] Fix the C API
Change-Id: Ifbe11515171d7ee919f90fb28d63907c3c4cfd42
2017-02-14 11:24:47 +01:00
Romain Goyet
335bccea4c [ion] Add a C bridge for the logging function
Change-Id: I70cc18700c6cf392e98c4ff89df897b330bde807
2017-02-14 10:58:46 +01:00
Romain Goyet
59e998ddab [ion] Add a Ion::Log::print method
Change-Id: Iba069b97c07b9ef6c1f21dd33b83a445c0e3dbda
2017-02-14 10:08:53 +01:00
Émilie Feral
138571762c [ion] delete tab space
Change-Id: Ia36a4e2943dfa0b23ed1d7030ee1075d2ea9b9dc
2017-01-27 12:09:50 +01:00
Émilie Feral
e6d5a8dfd1 [ion] Add a charset to associate char code to special symbols
Change-Id: I7533318185a7a66080ac68ced9b051d5e22b156d
2017-01-27 11:52:39 +01:00
Romain Goyet
025405d01d [ion] Add Ion::crc32
Takes only 32bit values. Uses non-reversed data/input

Change-Id: I8a776064af69047f7a8fa1399cf8a484f42b9b18
2017-01-06 17:22:29 +01:00
Romain Goyet
c1db79b5f9 [ion] Add a backlight namespace
Change-Id: I0b9ec9a1b342d4b949776f0303eca69a28d1de91
2017-01-05 16:00:10 +01:00
Romain Goyet
9b2fecfb12 [ion] Add Ion::usleep
Change-Id: Ife70133410e55c3f0af9a838543042a3da618119
2017-01-05 16:00:01 +01:00
Romain Goyet
5d9a3c2c92 [ion] Emscripten handles events from click
Change-Id: I81116dfd829fafc60d8aafd5edb7a925780900ff
2016-11-14 15:46:50 +01:00
Romain Goyet
f5ea9cb2d3 [ion] Introduce Ion::Events::None
Which allows Ion::Events::getEvent to be non-blocking

Change-Id: I2715b10ace2ecbac153b0f7d00ea5f2ca5de399c
2016-11-11 16:06:29 +01:00
Émilie Feral
1556ec3d2b [ion] adjust simulator to new keyboard
Change-Id: Ib0baddf88f74621c21276746161d2d0bdb68942e
2016-11-10 17:29:48 +01:00
Romain Goyet
b87f06e3a2 [ion] Update the Event model
Change-Id: I41a53caeb7dd8a15e7934f49675f6a53be8fe7be
2016-11-10 17:29:48 +01:00
Romain Goyet
99a4e3de91 [ion] Enable suspend/resume
Change-Id: I1fe580de7f98b95c768416ca889a7d74dad851ca
2016-08-31 17:07:41 +02:00
Romain Goyet
19c484640f [ion] Measure the battery voltage
Change-Id: Ic3c05eb65e2db3a66f2d2413821a0c121facd98f
2016-08-29 16:55:48 +02:00
Romain Goyet
831c42796b [ion] Add battery-related functions
Change-Id: Ib63b48140a8347d0d07902d956a3685fb040c481
2016-08-29 13:25:14 +02:00
Romain Goyet
457b7215fd [Ion] Enable setting the LED's color
Change-Id: Ib3e25be8d180f9d19ad3a0d0861b210d8a702194
2016-08-23 17:29:07 +02:00
Romain Goyet
753a4a7cb5 [Ion] Move to C++
Change-Id: Id75fca5e92a3fdf18258015bcda7cd70297b0fdb
2016-08-23 16:30:15 +02:00
Romain Goyet
2eeec9e929 [ion] Clean ion_sleep
Change-Id: Ib71e7e535ecd2ee572d09f2e64f2cba9368c614f
2016-08-18 16:45:36 +02:00
Romain Goyet
ada53fed0d PWM LED driving
Change-Id: Ic3eb3c13e5a0f35e13caf96039304647b2363bd2
2016-08-05 18:44:12 +02:00
Romain Goyet
5de28e01db Migrate Kandinsky to C++
Change-Id: I2752a8db84ad0bb817119cf6c2993c1622621150
2016-07-21 13:42:32 +02:00
Romain Goyet
30aa62e3c5 Escher: Introduce the TiledView
Change-Id: I97d612cf89bd9cf45f8b440881918b9626cd65f6
2016-07-21 11:32:33 +02:00
Romain Goyet
8e4b1666bb Kandinsky: KDFillRect takes a pattern, always
Change-Id: I32113345d742f21c0e238c1707bcee0116694d6f
2016-07-05 13:32:47 +02:00
Romain Goyet
ac4660bf3b ION: SCREEN_WIDTH becomes ION_SCREEN_WIDTH
Change-Id: Ifc7d06b773f8660cff30e727f510eea448b23852
2016-06-10 17:32:31 +02:00
Romain Goyet
7a389ca11b ION: Clean the st7789 driver
Change-Id: I706768fc49cb48ea3d965807efc0c6c825d96683
2016-06-10 17:16:19 +02:00
Romain Goyet
c07ef9a3f6 Ion: Increase the number of keys to match NW8901
Change-Id: Iaad8bf8167cc53cbe9869997dbdecba91a1196cc
2016-06-10 15:46:14 +02:00
Felix Raimundo
f334977c6a Nicer plot
Change-Id: I6f080a4c26ad8ce574661228a4d4b53632d2f870
2016-04-07 16:53:39 +02:00
Felix Raimundo
f9b7836e1e Add a delete button to the keyboard.
Change-Id: I10e57f19a7edfb4a59fb3c2f48bc0f8a8a58643f
2016-04-01 15:13:47 +02:00
Felix Raimundo
418d081f6e Add the trig menu.
Change-Id: Ifbe2518cb3a089dace82d56031987fbc7a2e6181
2016-03-29 13:41:36 +02:00
Felix Raimundo
fd95a7e558 Adds a text_input function to get text.
Also removes ion_getchar in favor of ion_get_event.

Change-Id: Id95ea509315185da24fd2a3fe90969da0bd19cfc
2016-03-23 17:31:59 +01:00
Felix Raimundo
411e983ccf Final pass at removing the warnings.
Change-Id: I4cd0276c97112e69fe2449c8db5eaaa1c186dfb6
2016-03-23 11:42:32 +01:00
Felix Raimundo
2778ccea11 Use the same macro for the screen size.
The screen size used to be defined by the framebuffer size, this was weird,
the creen size can be defined in the makefile if needed (in order to have different one for
different targets)

Change-Id: Ie294fba5f6cf5e942b4b35847ae8ccd18d3ddf85
2016-03-22 18:39:59 +01:00