Commit Graph

900 Commits

Author SHA1 Message Date
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
439f2702d8 [Ion] Remove C registers
Change-Id: Ic6330126b38ec58f1936862693b5874989499017
2016-08-23 17:07:16 +02:00
Romain Goyet
753a4a7cb5 [Ion] Move to C++
Change-Id: Id75fca5e92a3fdf18258015bcda7cd70297b0fdb
2016-08-23 16:30:15 +02:00
Romain Goyet
d2ff3457b5 [ion] Fix RGB/BGR ordering on ili9341
Change-Id: I5e3aa5c811af0bff74f82373c6867ac7f45422e2
2016-08-18 17:43:43 +02:00
Romain Goyet
fb4a67ae41 [ion] Ensure ion_sleep is not optimized out
Change-Id: Ifb468a8bc163acade32225b39aa261d552bdb4c9
2016-08-18 17:16:10 +02:00
Romain Goyet
827ec2fc20 [ion] Update the keyboard for NW8902
Change-Id: Ieb04e4b729d6fb17355410d0877576c46cbc0865
2016-08-18 17:15:49 +02:00
Romain Goyet
2eeec9e929 [ion] Clean ion_sleep
Change-Id: Ib71e7e535ecd2ee572d09f2e64f2cba9368c614f
2016-08-18 16:45:36 +02:00
Romain Goyet
809fdfdfab [ion] Cleanup
Change-Id: I14d1cb07cd075a40db4ab4e6246d5b3d1cc2140a
2016-08-18 16:36:49 +02:00
Romain Goyet
596d0d3876 [Ion] Much simpler display driver
Change-Id: Ia64a14ca5ed58f70590a27b968569832a0ecb722
2016-08-18 16:35:55 +02:00
Romain Goyet
a0aa16c504 [ion] Enable the FSMC
Change-Id: Ic564b819723bd5b1049ba5695095d7d9034cc665
2016-08-18 16:29:13 +02:00
Romain Goyet
1b233c5ee2 [ion] Clean the RCC class
Change-Id: I1c2c28baf1cce407ce06888a16e2eabe2be57b19
2016-08-16 14:17:36 +02:00
Romain Goyet
656eceb39c [ion] Split the regs headers
Change-Id: I5046ecb132bff215a1e256a70fe75d31a2c3fe2e
2016-08-10 14:19:11 +02:00
Romain Goyet
331bd3f480 [ion] Improve the register header
Change-Id: I109ad5779049e6ea7144492f7310b42933ecd626
2016-08-10 11:50:43 +02:00
Romain Goyet
f3787ac0da [ION] Use C++ for the LED PWM settings
Change-Id: I46b70ee703f35173913c953bcfe4442336f740b5
2016-08-09 14:47:46 +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
e10f688124 ION: Use a color framebuffer on the simulator
Change-Id: Ie7aeb91b07295774bfbdb77e1e08ac744693c193
2016-06-16 11:30:16 +02:00
Romain Goyet
96d1973276 Ion: Don't forget parethesis in macro definitions
Change-Id: Ibec0acaffc7d16ea84dbebe6d2cdb9c0731937e3
2016-06-13 12:59:50 +02:00
Romain Goyet
80296e6448 Escher: use ion_fill_rect
Change-Id: Ibedac8cb7da905d5cfada6dbbce46cac4bab2eae
2016-06-10 18:30:19 +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
Romain Goyet
4ac040ac0f Ion: Updated keyboard driver to match NW8901
Change-Id: I8ba2db36afb4d437b5452ec06fbde3b8bc781397
2016-06-10 15:15:07 +02:00
Romain Goyet
3fc55b5fd4 Ion: Cleaner macros
Change-Id: I81cc67b04b9e0d8053f098a9c363b7f56a72481f
2016-06-10 14:59:51 +02:00
Romain Goyet
d1ea456709 Ion: Remove dead code
Change-Id: Ie6d026c11ba2bf97686a1eac00e738d2366a4857
2016-06-09 16:52:34 +02:00
Romain Goyet
4db9e030f7 Ion: Remove LCD DMA
Change-Id: I59b47e43b2c1a6cfad6dcd7e6cdb25f66dd8f830
2016-06-09 16:37:48 +02:00
Romain Goyet
cfb44503b9 Ion: Use the new device's SPI config
Change-Id: I2151d42f803b3be8fde8d856382e58cd581dcb7c
2016-06-09 16:37:48 +02:00
Romain Goyet
2477305c17 Ion: Add an ST7789 driver
Change-Id: I62490dd2c944ecc93dc8c593aa3686ce1b7ac0f3
2016-06-09 16:37:48 +02:00
Felix Raimundo
2818b7f907 Remove annoying fltk warning...
Change-Id: If1294a0f9c7c414c9ae162e0239a40ea51bbaafc
2016-04-18 18:48:56 +02:00
Felix Raimundo
ecab47b1e4 Fix bad assert.
Change-Id: Id9c6b9d100a978df8e25758d84f828ab31babe3d
2016-04-08 13:43:57 +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
605dd9f372 Add memory_map for simulator.
Also use clang for the simulator building.

Change-Id: I87f5b938d9066375fbfabfdcdd3c5218c9790bb0
2016-03-22 18:39:59 +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
Felix Raimundo
16b650c5d5 Add left and righ arrows to move in the expression
Change-Id: Icf58335c9a78a97bdbed0da5d01f715dc11757d2
2016-03-22 18:39:59 +01:00
Felix Raimundo
4e9c33de2d Put the keys on the simulator.
NOTE: I messed up a merge so this si a bad commit.
Change-Id: I80c9bc3f9dd8b1d24069eb0cc87ce7fe15368071
2016-03-22 18:39:59 +01:00
Felix Raimundo
3cf9f3ebcb Small hack to get keys on the simulator.
NOTE: this is really hacky and should be improved as soon as possible,
but working zithout it is just to big a pain.

Change-Id: I01e322fa5f653f04e9fdf6b16b4b9fe023a4fe93
2016-03-21 18:30:01 +01:00
Felix Raimundo
b5b11e0120 Pretify the makefile.
Change-Id: I14e8d3a5fcdd23b0cd28094d0d1f9d2dc702f86e
2016-03-18 14:33:53 +01:00
Félix Raimundo
2db5b3e092 Merge changes Ic11846bc,Iaf6d678f
* changes:
  Updates the addition code to use attributes.
  Adds the power and parentheses to the parser.
2016-03-18 14:31:16 +01:00
Felix Raimundo
b33eb99067 Adds the power and parentheses to the parser.
Also removes some dead code and adds buttons in order to have parentehses.

Change-Id: Iaf6d678f765bb6a1c3405818738c51661aa43e12
2016-03-18 13:00:17 +01:00
Felix Raimundo
fd972bce65 Fix build
Change-Id: If550f0db40be8085fade58896f7d8a1b7db2cb47
2016-03-18 10:48:17 +01:00
Romain Goyet
92a62eea12 Use KDCoordinate 2015-10-03 13:00:49 +02:00
Romain Goyet
8869986a76 [ion] Proper CM4 registers 2015-09-30 14:46:29 +02:00
Romain Goyet
5da8500e77 [ion] blackbox 2015-09-29 22:01:48 +02:00