Close

Menu: first steps

A project log for RPi Zero WiFi-Enabled Hardware Password Manager

Codename Hardpass: A Password Manager on the Raspberry Pi Zero...suffering featuritis.

girgir 02/29/2016 at 20:260 Comments

Since I have the OLED working now, I started working on the menu screen. I am using the ArduiPi_OLED library by hallard (https://github.com/hallard/ArduiPi_OLED) and was able to reuse a lot of the code from my old hardware password manager, `kee` mk1, which was/is based on the teensy3.0 and also uses a I²C OLED.

I tried to mimic the interface and parameter style of `dialog`, a TUI style dialog framework, although I simplified it quite a bit:

sudo ./oled "first option" "second option" "`echo -ne "contains \x19 special chars"`" ...
it is rather counter intuitive in its return values, as "0" (normally for OK) is now the error return and anything n>0 means nth item selected. This means it will be easy to parse which item was selected with bash or python (or c - i'm not sure yet)

currently, I don't have the button matrix hooked up, so i control it via the keyboard ("stty raw" mode and j/k for down/up)

code comming soon!

Discussions