Fix examples to match Master branch.
This commit is contained in:
		
							parent
							
								
									c9a9320719
								
							
						
					
					
						commit
						ad7d729010
					
				| 
						 | 
					@ -43,7 +43,7 @@ void setup() {
 | 
				
			||||||
  // turn on the radio
 | 
					  // turn on the radio
 | 
				
			||||||
  digitalWrite(RESET_PIN, HIGH);
 | 
					  digitalWrite(RESET_PIN, HIGH);
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  Serial.begin(115200);
 | 
					  Serial.begin(9600);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  radio.initialize();
 | 
					  radio.initialize();
 | 
				
			||||||
  radio.frequency(145570);
 | 
					  radio.frequency(145570);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -29,7 +29,6 @@ void setup() {
 | 
				
			||||||
  radio.initialize();
 | 
					  radio.initialize();
 | 
				
			||||||
  radio.frequency(145010);
 | 
					  radio.frequency(145010);
 | 
				
			||||||
  radio.setSQOff();
 | 
					  radio.setSQOff();
 | 
				
			||||||
  I2Cdev::writeWord(A1846S_DEV_ADDR_SENLOW, 0x44, 0b11111111);
 | 
					 | 
				
			||||||
  Serial.println(F("Frequency"));
 | 
					  Serial.println(F("Frequency"));
 | 
				
			||||||
  delay(100);
 | 
					  delay(100);
 | 
				
			||||||
  Serial.print(F("Squelch(H/L): "));
 | 
					  Serial.print(F("Squelch(H/L): "));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,12 +1,15 @@
 | 
				
			||||||
/* Hamshield
 | 
					/* Hamshield
 | 
				
			||||||
 * Example: Fox Hunt
 | 
					 * Example: Functional Test
 | 
				
			||||||
 * Plays a one minute tone at 10-13 minute intervals. Script 
 | 
					 * This is a simple example to demonstrate HamShield receive
 | 
				
			||||||
 * will check to see if the channel is clear before it will 
 | 
					 * and transmit functionality.
 | 
				
			||||||
 * transmit.
 | 
					 | 
				
			||||||
 * Connect the HamShield to your Arduino. Screw the antenna 
 | 
					 * Connect the HamShield to your Arduino. Screw the antenna 
 | 
				
			||||||
 * into the HamShield RF jack. Connect the Arduino to wall power and then 
 | 
					 * into the HamShield RF jack. Plug a pair of headphones into 
 | 
				
			||||||
 * to your computer via USB. To test, set a HandyTalkie 
 | 
					 * the HamShield. Connect the Arduino to wall power and then 
 | 
				
			||||||
 * to 438MHz. You should hear a one-minute tone every 10-13 minutes.
 | 
					 * 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>
 | 
					#include <HamShield.h>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -35,7 +35,7 @@ void setup() {
 | 
				
			||||||
  digitalWrite(RESET_PIN, HIGH);
 | 
					  digitalWrite(RESET_PIN, HIGH);
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  analogReference(DEFAULT);
 | 
					  analogReference(DEFAULT);
 | 
				
			||||||
  Serial.begin(115200);
 | 
					  Serial.begin(9600);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Serial.print("Radio status: ");
 | 
					  Serial.print("Radio status: ");
 | 
				
			||||||
  int result = radio.testConnection();
 | 
					  int result = radio.testConnection();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -58,7 +58,7 @@ void sendChar(uint8_t c) {
 | 
				
			||||||
  //PORTD &= ~_BV(2); // Diagnostic pin (D2)
 | 
					  //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() {
 | 
					void loop() {
 | 
				
			||||||
  int i;
 | 
					  int i;
 | 
				
			||||||
  // put your main code here, to run repeatedly:
 | 
					  // put your main code here, to run repeatedly:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -51,7 +51,7 @@ void setup() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void loop() {
 | 
					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
 | 
					       radio.setModeTransmit();                   // Turn on the transmitter
 | 
				
			||||||
       delay(250);                               // Wait a moment
 | 
					       delay(250);                               // Wait a moment
 | 
				
			||||||
       radio.SSTVTestPattern(MARTIN1);            // send a MARTIN1 test pattern
 | 
					       radio.SSTVTestPattern(MARTIN1);            // send a MARTIN1 test pattern
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -89,7 +89,7 @@ void setup() {
 | 
				
			||||||
  pinMode(RESET_PIN, OUTPUT);
 | 
					  pinMode(RESET_PIN, OUTPUT);
 | 
				
			||||||
  digitalWrite(RESET_PIN, HIGH);
 | 
					  digitalWrite(RESET_PIN, HIGH);
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  Serial.begin(115200);
 | 
					  Serial.begin(9600);
 | 
				
			||||||
  Serial.print(";;;;;;;;;;;;;;;;;;;;;;;;;;");
 | 
					  Serial.print(";;;;;;;;;;;;;;;;;;;;;;;;;;");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  int result = radio.testConnection();
 | 
					  int result = radio.testConnection();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue