Pi Expansion Header Pin No. | GPIO No. | Function | LCD Pin No. |
---|---|---|---|
11 | 17 | D4 | 11 |
12 | 18 | D5 | 12 |
13 | 27 | D7 | 14 |
15 | 22 | D6 | 13 |
16 | 23 | RS | 4 |
18 | 24 | E | 6 |
Here are the methods that a J5 IO-Plugin is expected to implement:
- i2cWrite(address, inBytes)
- i2cWrite(address, register, inBytes)
- i2cWriteReg(address, register, value)
- i2cRead(address, register, bytesToRead, handler)
- i2cRead(address, bytesToRead, handler)
- i2cReadOnce(address, register, bytesToRead, handler)
- i2cReadOnce(address, bytesToRead, handler)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1430248080895 Device(s) RaspberryPi-IO | |
1430248080958 Connected RaspberryPi-IO | |
North | |
NorthEast by North | |
NorthEast by North | |
NorthEast by North | |
NorthEast by North | |
NorthEast by North | |
NorthEast by North | |
NorthEast by North |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var five = require("johnny-five"); | |
var BeagleBone = require("beaglebone-io"); | |
var board = new five.Board({ | |
io: new BeagleBone() | |
}); | |
board.on("ready", function() { | |
var accelerometer = new five.Accelerometer({ | |
controller: "ADXL345" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var SerialPort = require('serialport').SerialPort; | |
var calls = 0; | |
var serialPort = new SerialPort('/dev/ttyAMA0', { | |
baudrate: 115200, | |
parser: function() { | |
calls++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include <avr/power.h> | |
#include <util/delay.h> | |
#define LED PB0 | |
#define LED_DDR DDRB | |
#define LED_PORT PORTB | |
#define USART_BAUDRATE 115200 | |
#define UBRR_VALUE (((F_CPU / (USART_BAUDRATE * 16UL))) - 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi ~/dev $ npm install git://github.com/jgautier/firmata.git | |
- | |
> firmata@0.7.1-pre-2 postinstall /home/pi/dev/node_modules/firmata | |
> node scripts/postinstall | |
> serialport@2.0.1 install /home/pi/dev/node_modules/firmata/node_modules/serialport | |
> node-pre-gyp install --fallback-to-build | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi ~/dev/j5 $ node -v | |
v4.2.0 | |
pi@raspberrypi ~/dev/j5 $ npm install git://github.com/rwaldron/johnny-five.git | |
> firmata@0.7.1-pre-2 postinstall /home/pi/dev/node_modules/johnny-five/node_modules/firmata | |
> node scripts/postinstall | |
/ | |
> serialport@2.0.1 install /home/pi/dev/node_modules/johnny-five/node_modules/firmata/node_modules/serialport | |
> node-pre-gyp install --fallback-to-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debian@beaglebone:~/dev/sp10$ node -v | |
v0.10.38 | |
debian@beaglebone:~/dev/sp10$ npm install serialport | |
\ | |
> serialport@2.0.2 install /home/debian/dev/sp10/node_modules/serialport | |
> node-pre-gyp install --fallback-to-build | |
make: Entering directory '/home/debian/dev/sp10/node_modules/serialport/build' | |
CXX(target) Release/obj.target/serialport/src/serialport.o | |
CXX(target) Release/obj.target/serialport/src/serialport_unix.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brian@linuxbox:~$ ./oneshot.sh | |
1. install dependencies | |
[sudo] password for brian: | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
autoconf is already the newest version. | |
autoconf2.13 is already the newest version. | |
bison is already the newest version. | |
flex is already the newest version. |
OlderNewer