diff options
author | bnewbold <bnewbold@robocracy.org> | 2015-01-06 20:01:25 +0000 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2015-01-06 20:01:25 +0000 |
commit | 93a7471798b48cd4442d7b28ddd8ffce1587c4c3 (patch) | |
tree | 93a505cff9b7c7d8e1f18ff8b1cfcdc3164223de | |
parent | 60ad89be9d32e154182ff8517dbc2fdea7021696 (diff) | |
parent | 97f6da592df6b44732be885dadfdd1e5a1e48872 (diff) | |
download | novena-guide-93a7471798b48cd4442d7b28ddd8ffce1587c4c3.tar.gz novena-guide-93a7471798b48cd4442d7b28ddd8ffce1587c4c3.zip |
Merge pull request #1 from al42and/fpga_typo
Fixes and additions to GPBB FPGA Quickstart
-rw-r--r-- | fpga-hacking.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/fpga-hacking.rst b/fpga-hacking.rst index 467277d..edebb30 100644 --- a/fpga-hacking.rst +++ b/fpga-hacking.rst @@ -17,6 +17,16 @@ Run these commands from a Novena with the GPBB attached:: git clone https://github.com/bunnie/novena-gpbb-example cd novena-gpbb-example make -j4 - sudo ./configure.sh novena_fpga + 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 + |