Commit Graph

78 Commits

Author SHA1 Message Date
Romain Goyet
61ed9a128f [ion] Add a test for the events
Change-Id: Ia15b137b151831a7b4140c176f41621dad1f48ef
2017-05-01 21:57:53 +02:00
Romain Goyet
cc31953d88 [ion] Event::isDefined instead of isValid
Change-Id: If5927200fbc0b5395496294e37d06d502452f311
2017-05-01 21:57:53 +02:00
Romain Goyet
0764a7dda3 [ion] Add Event::Termination
Change-Id: I7f417700d85f0298483564268609a5298ecc0022
2017-05-01 21:57:52 +02:00
Romain Goyet
3ac05e983b [ion] Introduce Event::isKeyboardEvent/isSpecialEvent
Change-Id: Iddfe95ec86f1024bec537542af22febcd2d0087a
2017-05-01 21:57:52 +02:00
Romain Goyet
fcd01a9655 [ion] Add Event::isValid
Change-Id: I0bf217f185772ca1f27aca66a704dbee30509907
2017-05-01 16:00:58 +02:00
Émilie Feral
c2b6777b58 [apps] Extinction and backlight timers
Change-Id: I91daf6ab78fff9ec4bc924915a17a559f9ddfa63
2017-04-25 11:00:04 +02:00
Émilie Feral
3743ae6bce [ion] In events keyboard, implement shift-alpha-lock
Change-Id: I6377c6ce7ca6468ca884c90dbfb1b4b15098fab9
2017-04-21 10:08:09 +02:00
Romain Goyet
e19b2b9085 [ion] Add a Display::waitForVBlank method
Change-Id: Ie744ec4a73eeb7c2d7c549fd7f47ff4c74aab5ee
2017-04-10 15:29:18 +02:00
Émilie Feral
3261701d2d [ion] Add a method to know if the USB is plugged
Change-Id: I040ce7996bbec121c71d57a5092ffae4f5f76025
2017-04-07 14:40:34 +02:00
Émilie Feral
7091b2ea35 [ion] Add software version, patch level and serial number
Change-Id: I011eeb2d8596f63e0c2fdedf353d544dc8a8a202
2017-04-04 14:18:11 +02:00
Romain Goyet
a85158d4ce [ion] Introduce Ion::Keyboard::State
Change-Id: I8da2814365391c3c23f2011f92532269b7a4381d
2017-03-30 17:48:14 +02:00
Émilie Feral
475b3ce54a [ion] Fix error in data for event
Change-Id: Ib23206b7ca9bcf5c4d6432d17e069a63a613996b
2017-03-29 11:34:46 +02:00
Émilie Feral
8559e43061 [ion] implement battery level for device and simulator
Change-Id: I6983132f25408805971a495d4a8b3d3e029d3a55
2017-03-28 14:49:27 +02:00
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