Commit Graph

18 Commits

Author SHA1 Message Date
Jochen Hoenicke 83a69a0334
Added fixed-width font and multi-font support 2018-02-20 18:22:47 +01:00
Pavol Rusnak 59e204fe2b
fix small bug in oledDrawChar 2018-01-14 14:55:30 +01:00
Saleem Rashid 17340c2396 emulator: Show DEBUG_LINK indicator 2017-12-18 20:09:59 +01:00
Saleem Rashid ba5b44d0c5 emulator: Initial commit 2017-12-18 20:09:59 +01:00
Saleem Rashid 83a34ff925
util: Add MIN and MAX macros 2017-12-17 03:12:37 +01:00
Pavol Rusnak 18d8cb3c56
add project website (trezor.io) to license header 2017-11-05 17:47:23 +01:00
Pavol Rusnak 30367bfad1
reset: refactor code into layoutResetWord 2017-09-04 08:12:33 +02:00
Jochen Hoenicke 4e58befe5d Clean-up of oled code. (#197)
Get rid of the macros.  Use only the functions instead.
Optimized some of the functions.
2017-07-25 14:24:45 +02:00
Pavol Rusnak 3d7d0f0734
use C99 for loop where possible 2017-07-23 22:20:51 +02:00
Pavol Rusnak 505df38a84
fix when oled triangle is shown 2017-01-19 16:16:57 +01:00
Jochen Hoenicke 5dae02bbbf
Faster SPI communication
According to specs, the display can handle up to 10 MHz SPI traffic
(minimum cycle time is 100 ns). This patch sets the SPI port to
7.5 MHz (60 MHz clock with divisor 8).  In my tests the display works
even fine with SPI frequency at 60 MHz.  I also minimized the delays
(the spec doesn't require a long setup time) and use the registers to
check when transfer is done instead of using a fixed delay.

This patch also changes the swipe function to swipe pixel by pixel.
Otherwise, the swipe would happen too fast to be seen.

This changes the display update time from 11 ms to 1.5 ms.
2016-08-26 18:43:16 +02:00
Pavol Rusnak c71abf91a6
cleanup oledDrawChar code 2015-11-18 23:35:28 +01:00
Pavol Rusnak 50c8811af9
double sized font for reset device 2015-11-18 19:52:16 +01:00
Pavol Rusnak 7d3196a057 correctly skip utf-8 characters 2015-02-13 17:42:23 +01:00
Pavol Rusnak 7fd1e894f5 refactor font handling 2015-02-13 15:37:23 +01:00
Pavol Rusnak 983d1ff4b5 use space for non-printable chars such as enter, tab, etc. 2014-12-08 19:32:18 +01:00
Pavol Rusnak ea42f6af4e adapt to new opencm3 include structure 2014-06-19 00:12:31 +02:00
Pavol Rusnak 0d0a1ab5f2 import v1.0.0 2014-04-29 14:38:32 +02:00