Update HamShield examples to work with seperated libraries.

This commit is contained in:
nick6x
2016-08-17 14:17:56 -07:00
parent bce0b1e0d8
commit 9e0db9d537
4 changed files with 31 additions and 20 deletions

View File

@@ -11,10 +11,12 @@
#include <HamShield.h>
#include <KISS.h>
#include <AFSK.h>
HamShield radio;
DDS dds;
KISS kiss(&Serial, &radio, &dds);
AFSK afsk;
//TODO: move these into library
#define PWM_PIN 3
@@ -46,7 +48,7 @@ void setup() {
//I2Cdev::writeWord(A1846S_DEV_ADDR_SENLOW, 0x44, 0x05FF);
dds.start();
radio.afsk.start(&dds);
afsk.start(&dds);
}
void loop() {