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
// rf22_server.pde | |
// -*- mode: C++ -*- | |
// Example sketch showing how to create a simple messageing server | |
// with the RH_RF22 class. RH_RF22 class does not provide for addressing or | |
// reliability, so you should only use RH_RF22 if you do not need the higher | |
// level messaging abilities. | |
// It is designed to work with the other example rf22_client | |
// Tested on Duemilanove, Uno with Sparkfun RFM22 wireless shield | |
// Tested on Flymaple with sparkfun RFM22 wireless shield | |
// Tested on ChiKit Uno32 with sparkfun RFM22 wireless shield |
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
/* Pin Map */ | |
#define MOTOR_L_IN_1 16 | |
#define MOTOR_L_IN_2 15 | |
#define MOTOR_L_PWM 22 | |
#define MOTOR_STBY 14 | |
#define MOTOR_R_IN_1 17 | |
#define MOTOR_R_IN_2 18 | |
#define MOTOR_R_PWM 23 | |
#define MOTOR_L_A 11 | |
#define MOTOR_L_B 12 |
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
LIBRARY ieee; | |
USE ieee.std_logic_1164.all; | |
USE ieee.std_logic_arith.all; | |
ENTITY i2c IS | |
PORT( | |
clock_L : IN STD_LOGIC; -- 400kHz | |
scl_H : INOUT STD_LOGIC; | |
sda_H : INOUT STD_LOGIC; | |
int_i2c_L : OUT STD_LOGIC; |
NewerOlder