Difference between revisions of "Getting started with rpi serial and BitWizard expansion boards"

From BitWizard WIKI
Jump to: navigation, search
(Created page with "= Getting started with rpi serial and BitWizard expansion boards = Each of the following needs to be expanded. Please add a line or two if you can. * get raspian * comment ...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Getting started with rpi serial and BitWizard expansion boards =
 
  
 
Each of the following needs to be expanded. Please add a line or two if you can.  
 
Each of the following needs to be expanded. Please add a line or two if you can.  
  
 
* get raspian
 
* get raspian
* comment out the two lines in /etc/modprobe.d/raspi-blacklist.conf  
+
* comment out the two lines in /etc/modprobe.d/raspi-blacklist.conf (no longer necessary?)
 
* get bw_rpi_tools
 
* get bw_rpi_tools
* compile bw_rpi_tools
+
git clone https://github.com/rewolff/bw_rpi_tools.git
* get rpi-update
+
* compile bw_tool
* run rpi-update
+
cd bw_rpi_tools/bw_tool/
* reboot
+
make
 +
* install bw_tool
 +
sudo make install
 +
* get rpi-update (no longer necessary?)
 +
* run rpi-update (no longer necessary?)
 +
* reboot (no longer necessary?)
 
* for the spi version, run
 
* for the spi version, run
  sudo bw_rpi_tools/bw_spi/bw_lcd -t "hello world"  
+
sudo bw_tool -t "hello world"  
* for the i2c version run
+
* for the i2c version on a rev 1 rasbperry pi, run
  sudo bw_rpi_tools/bw_i2c_lcd/bw_i2c_lcd -t "hello world"
+
sudo modprobe i2c-dev
 +
sudo bw_tool -I -t "hello world"
 +
* for the i2c version on a rev 2 raspberry pi, you need to specify the other I2C bus:
 +
sudo bw_tool -I -D /dev/i2c-1 -t "hello world"
  
(the sample assumes the LCD and displays a text on it. )
+
(the sample assumes the LCD and displays a text on it.)  
 +
Try "-a <youraddress> -i" instead of the '-t "hello world" ' to identify your expansion board.
 +
Fill in the address from [[default addresses]].
 +
 
 +
For example " -a 94 -R 30:b" will read the status of the pushbuttons on the rpi_ui. "-a 94 -t hello" will print a text on the rpi_ui.

Latest revision as of 11:30, 4 January 2013

Each of the following needs to be expanded. Please add a line or two if you can.

  • get raspian
  • comment out the two lines in /etc/modprobe.d/raspi-blacklist.conf (no longer necessary?)
  • get bw_rpi_tools
git clone https://github.com/rewolff/bw_rpi_tools.git
  • compile bw_tool
cd bw_rpi_tools/bw_tool/
make
  • install bw_tool
sudo make install 
  • get rpi-update (no longer necessary?)
  • run rpi-update (no longer necessary?)
  • reboot (no longer necessary?)
  • for the spi version, run
sudo bw_tool -t "hello world" 
  • for the i2c version on a rev 1 rasbperry pi, run
sudo modprobe i2c-dev
sudo bw_tool -I -t "hello world"
  • for the i2c version on a rev 2 raspberry pi, you need to specify the other I2C bus:
sudo bw_tool -I -D /dev/i2c-1 -t "hello world"

(the sample assumes the LCD and displays a text on it.) Try "-a <youraddress> -i" instead of the '-t "hello world" ' to identify your expansion board. Fill in the address from default addresses.

For example " -a 94 -R 30:b" will read the status of the pushbuttons on the rpi_ui. "-a 94 -t hello" will print a text on the rpi_ui.