Skip to content

Commit c8fd796

Browse files
Added link to hackaday and removed images
1 parent 5ec78db commit c8fd796

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

readme.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
## Hardware TOTP token
22
Open source hardware TOTP token. Currently targets the LPC1756, LPC1758 and LPC1759 (with a small change it should also run on the LPC1754).
33

4-
The LPC1756 does not have enough ram to hold a full framebuffer (240 * 135 * 2 = 64'800 bytes). To work around this issue, we use 2 smaller framebuffers we alternate between. While one framebuffer is being transferred to the screen using DMA we fill the other.
5-
6-
To make it easier (for me) the whole screen is written to this smaller framebuffer. The pixels that do not fit the framebuffer are thrown away. This does waste CPU cycles but is not limiting the framerate. Filling a full frame with pixels takes around 6 milliseconds. Writing a full frame of framebuffers takes around 11 milliseconds. This limits the maximum framerate to ≈ 85FPS. To get a consistant frame rate there is a limit of 60FPS.
7-
8-
The main screen takes the longest to draw. This is caused by the amount of pixels of the circle it needs to draw. The circle is generated on compile time to work around that the LPC175x family does not have a FPU. These generated pixels use 8640 bytes of flash.
9-
104
### Features
115
* keys never leave the token after setup
126
* support for 6 and 8 digit tokens
@@ -19,17 +13,7 @@ The main screen takes the longest to draw. This is caused by the amount of pixel
1913
* 60 seconds screen timeout
2014

2115
### Images
22-
Photos<br>
23-
<img src='img/totp_test.jpg' width='500'>
24-
<img src='img/full_front0.jpg' width='500'>
25-
<img src='img/case.jpg' width='500'>
26-
27-
PCB<br>
28-
<img src='img/pcb.jpg' width='500'>
29-
<img src='img/lpc1756_totp.png' width='500'>
30-
<img src='img/lpc1756_totp_back.png' width='500'>
31-
32-
More pictures can be found [here](./img/)
16+
Images can be found in the project logs at [hackaday](https://hackaday.io/project/194867-hardware-2fa-totp-authenticator)
3317

3418
### TODO
3519
* encrypt profiles
@@ -42,3 +26,9 @@ TOTP uses [klib](https://github.com/itzandroidtab/klib). This repo can be cloned
4226

4327
### Extra
4428
Is intended to be used with [USB dfu bootloader](https://github.com/itzandroidtab/dfu_bootloader). To build without bootloader support delete `set(TARGET_LINKERSCRIPT ...)` from the `CMakeLists.txt` in this project.
29+
30+
The LPC1756 does not have enough ram to hold a full framebuffer (240 * 135 * 2 = 64'800 bytes). To work around this issue, we use 2 smaller framebuffers we alternate between. While one framebuffer is being transferred to the screen using DMA we fill the other.
31+
32+
To make it easier (for me) the whole screen is written to this smaller framebuffer. The pixels that do not fit the framebuffer are thrown away. This does waste CPU cycles but is not limiting the framerate. Filling a full frame with pixels takes around 6 milliseconds. Writing a full frame of framebuffers takes around 11 milliseconds. This limits the maximum framerate to ≈ 85FPS. To get a consistant frame rate there is a limit of 60FPS.
33+
34+
The main screen takes the longest to draw. This is caused by the amount of pixels of the circle it needs to draw. The circle is generated on compile time to work around that the LPC175x family does not have a FPU. These generated pixels use 8640 bytes of flash.

0 commit comments

Comments
 (0)