This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
accessory:sensor:weather-board:c:16x2lcd [2017/07/25 10:33]
john1117 [Settings I2C]
accessory:sensor:weather-board:c:16x2lcd [2017/08/17 10:46] (current)
luke.go ↷ Page name changed from accessory:sensor:weather-board:c:weather-board to accessory:sensor:weather-board:c:16x2lcd
Line 14: Line 14:
 |27|I2CB.SDA|76|207| |27|I2CB.SDA|76|207|
 |28|I2CB.SCL|77|208| |28|I2CB.SCL|77|208|
-====== Settings I2C ======+ 
 +===== Settings I2C ===== 
 +<WRAP round tip 60%> 
 +This guide is tested on Ubuntu 16.04(kernel C1-3.10.104,​ C2-3.14.79). 
 Add I2C module Add I2C module
 <code bash target> <code bash target>
Line 23: Line 27:
 To always load the kernel module on boot up, run the following command. To always load the kernel module on boot up, run the following command.
 <code bash target> <code bash target>
-echo "​aml_i2c"​ | sudo tee -a /​etc/​modules+echo "​aml_i2c"​ | sudo tee -a /​etc/​modules
 </​code>​ </​code>​
-====== Download & Run ====== +===== Download & Run ===== 
-<code bash> +<code bash target
-sudo apt-get install git +sudo apt-get install git 
-git clone https://​github.com/​hardkernel/​WEATHER-BOARD.git +git clone https://​github.com/​hardkernel/​WEATHER-BOARD.git 
-cd WEATHER-BOARD/​c_weather +cd WEATHER-BOARD/​c_weather 
 </​code>​ </​code>​
 Check your I2C node, and run the program. Check your I2C node, and run the program.
-<code bash> +<code bash target
-sudo ./​weather_board+sudo ./​weather_board
 </​code>​ </​code>​
 or or
-<code bash> +<code bash target
-sudo ./​weather_board /dev/i2c-2+sudo ./​weather_board /dev/i2c-2
 </​code>​ </​code>​