Fix examples to match Master branch.

This commit is contained in:
nick6x 2016-08-13 15:39:53 -07:00
parent c9a9320719
commit ad7d729010
7 changed files with 15 additions and 13 deletions

View File

@ -43,7 +43,7 @@ void setup() {
// turn on the radio
digitalWrite(RESET_PIN, HIGH);
Serial.begin(115200);
Serial.begin(9600);
radio.initialize();
radio.frequency(145570);

View File

@ -29,7 +29,6 @@ void setup() {
radio.initialize();
radio.frequency(145010);
radio.setSQOff();
I2Cdev::writeWord(A1846S_DEV_ADDR_SENLOW, 0x44, 0b11111111);
Serial.println(F("Frequency"));
delay(100);
Serial.print(F("Squelch(H/L): "));

View File

@ -1,12 +1,15 @@
/* Hamshield
* Example: Fox Hunt
* Plays a one minute tone at 10-13 minute intervals. Script
* will check to see if the channel is clear before it will
* transmit.
* Example: Functional Test
* This is a simple example to demonstrate HamShield receive
* and transmit functionality.
* Connect the HamShield to your Arduino. Screw the antenna
* into the HamShield RF jack. Connect the Arduino to wall power and then
* to your computer via USB. To test, set a HandyTalkie
* to 438MHz. You should hear a one-minute tone every 10-13 minutes.
* into the HamShield RF jack. Plug a pair of headphones into
* the HamShield. Connect the Arduino to wall power and then
* to your computer via USB. After uploading this program to
* your adruino, open the Serial Monitor. Serial Monitor will
* describe what you should be expecting to hear from your
* headphones. Tune a HandytTalkie to 446MHz to hear morse
* code example.
*/
#include <HamShield.h>

View File

@ -35,7 +35,7 @@ void setup() {
digitalWrite(RESET_PIN, HIGH);
analogReference(DEFAULT);
Serial.begin(115200);
Serial.begin(9600);
Serial.print("Radio status: ");
int result = radio.testConnection();

View File

@ -58,7 +58,7 @@ void sendChar(uint8_t c) {
//PORTD &= ~_BV(2); // Diagnostic pin (D2)
}
char *string = "Why hello there, friend. Nice to meet you. Welcome to PSK31. 73, VE6SLP sk\r\n";
char *string = "Why hello there, friend. Nice to meet you. Welcome to QPSK63. 73, VE6SLP sk\r\n";
void loop() {
int i;
// put your main code here, to run repeatedly:

View File

@ -51,7 +51,7 @@ void setup() {
void loop() {
if(radio.waitForChannel(1000,2000)) { // Wait forever for calling frequency to open, then wait 2 seconds for breakers
if(radio.waitForChannel(1000,2000, rssi)) { // Wait forever for calling frequency to open, then wait 2 seconds for breakers
radio.setModeTransmit(); // Turn on the transmitter
delay(250); // Wait a moment
radio.SSTVTestPattern(MARTIN1); // send a MARTIN1 test pattern

View File

@ -89,7 +89,7 @@ void setup() {
pinMode(RESET_PIN, OUTPUT);
digitalWrite(RESET_PIN, HIGH);
Serial.begin(115200);
Serial.begin(9600);
Serial.print(";;;;;;;;;;;;;;;;;;;;;;;;;;");
int result = radio.testConnection();