diff options
-rw-r--r-- | fpga-hacking.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fpga-hacking.rst b/fpga-hacking.rst index 2f2e8d3..edebb30 100644 --- a/fpga-hacking.rst +++ b/fpga-hacking.rst @@ -20,3 +20,13 @@ Run these commands from a Novena with the GPBB attached:: sudo ./configure.sh novena_fpga.bit sudo ./novena-gpbb -v +Simple test --- toggle four on-board LEDs, connected to I/O port B, pins 0--3:: + + sudo ./novena-gpbb -oeb 1 # set port B to drive + for BIT in 0 1 2 3; do + sudo ./novena-gpbb -p_set b $BIT # Set pin + sleep 1 + done + sudo ./novena-gpbb -p b 00 # Write 0x00, i.e. reset all pins + sudo ./novena-gpbb -oeb 0 # return port B to tristate mode + |