Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set up Sprite for SLCE Codes

  • Loading branch information...
commit e29c8878b5bb0f892ed2f00d0400a0ef77e03d19 1 parent cff121f
@zacinaction authored
View
43 DevelopmentKit/Energia/CompassDemo/CompassDemo.ino
@@ -1,29 +1,34 @@
#include <SpriteRadio.h>
#include <SpriteMag.h>
-unsigned char prn_2[64] = {
- 0b10101010, 0b11110111, 0b11100111, 0b10100100, 0b11111001, 0b01111101, 0b00000010, 0b11000100,
- 0b11001110, 0b11110101, 0b10110111, 0b01010110, 0b10010111, 0b01000100, 0b00010000, 0b11010111,
- 0b01100001, 0b00011111, 0b11110001, 0b10000010, 0b10001110, 0b11010000, 0b10111000, 0b01110000,
- 0b01110100, 0b11010101, 0b00110001, 0b11101101, 0b10011111, 0b10111011, 0b10011100, 0b11000011,
- 0b00010111, 0b10011010, 0b00110010, 0b00000001, 0b00101000, 0b01111001, 0b00110111, 0b00011100,
- 0b10001001, 0b00001001, 0b11010111, 0b11110101, 0b00100011, 0b01101010, 0b00001100, 0b11001010,
- 0b01010100, 0b01010011, 0b10001010, 0b11100101, 0b01100000, 0b00110111, 0b10001000, 0b10110101,
- 0b10010010, 0b01011001, 0b10110001, 0b10100111, 0b10000001, 0b11110110, 0b01011011, 0b11100000
+static unsigned char prn2[80] = {
+ 0b00111010, 0b00010010, 0b01111101, 0b10011010, 0b01010000, 0b10111011, 0b10101101, 0b10100111,
+ 0b01100110, 0b00100011, 0b01010011, 0b01001101, 0b10011110, 0b01110100, 0b00010100, 0b11101110,
+ 0b11010101, 0b00111110, 0b10000111, 0b00111101, 0b11101010, 0b01111111, 0b11101001, 0b01100001,
+ 0b00010001, 0b01100111, 0b10000000, 0b11100011, 0b11101101, 0b00101110, 0b10010000, 0b11100001,
+ 0b11000101, 0b11111101, 0b10010010, 0b10000001, 0b00100000, 0b11010100, 0b01001000, 0b11000001,
+ 0b00000110, 0b00100100, 0b01010110, 0b00001001, 0b00000010, 0b10010011, 0b01111111, 0b01000111,
+ 0b00001110, 0b00010010, 0b11101001, 0b01101111, 0b10001110, 0b00000011, 0b11001101, 0b00010001,
+ 0b00001101, 0b00101111, 0b11111100, 0b10101111, 0b01111001, 0b11000010, 0b11111001, 0b01010110,
+ 0b11101110, 0b01010000, 0b01011100, 0b11110011, 0b01100101, 0b10010101, 0b10001000, 0b11001101,
+ 0b11001011, 0b01101011, 0b10111010, 0b00010100, 0b10110011, 0b01111100, 0b10010000, 0b10111001
};
-unsigned char prn_1[64] = {
- 0b10101010, 0b10000001, 0b01001010, 0b11110010, 0b11101110, 0b00000111, 0b00111010, 0b01001111,
- 0b01011101, 0b01000100, 0b10000110, 0b01110000, 0b10111101, 0b10110011, 0b01000011, 0b10111100,
- 0b00111111, 0b11100000, 0b11110111, 0b11000101, 0b11001100, 0b10000010, 0b01010011, 0b10110100,
- 0b01111001, 0b11110011, 0b01100010, 0b10100100, 0b01110001, 0b10110101, 0b01110001, 0b00110001,
- 0b00010000, 0b00001000, 0b01000110, 0b00010011, 0b10010101, 0b01100001, 0b10111101, 0b00110111,
- 0b00100010, 0b10000101, 0b01101001, 0b11111011, 0b00100100, 0b10110111, 0b11100100, 0b11010100,
- 0b11001100, 0b00000110, 0b00110010, 0b10001101, 0b00101111, 0b11101000, 0b10110001, 0b11010110,
- 0b01011001, 0b11100011, 0b11101110, 0b10000011, 0b01011011, 0b01110110, 0b00001011, 0b01011110
+
+static unsigned char prn3[80] = {
+ 0b01100010, 0b00101010, 0b11010000, 0b01000010, 0b10010001, 0b00011110, 0b00111111, 0b11010011,
+ 0b11101110, 0b01011000, 0b01101000, 0b01011111, 0b10110110, 0b11000100, 0b00100101, 0b10000111,
+ 0b11100110, 0b10010111, 0b01110011, 0b01101111, 0b01110010, 0b11010101, 0b01110101, 0b11100010,
+ 0b11010010, 0b00010010, 0b01111110, 0b01100110, 0b10000001, 0b01000111, 0b01010001, 0b10011100,
+ 0b11001000, 0b10101111, 0b10101011, 0b01111101, 0b01011110, 0b00011011, 0b01010110, 0b00111101,
+ 0b00001110, 0b01010100, 0b10011110, 0b00010101, 0b00000100, 0b10101000, 0b00101011, 0b10110011,
+ 0b00011001, 0b11010100, 0b01110101, 0b11111010, 0b01100110, 0b00000110, 0b11011110, 0b11010010,
+ 0b11100001, 0b01000101, 0b01010010, 0b11000100, 0b00100100, 0b11000100, 0b01011010, 0b01100000,
+ 0b01111001, 0b01101111, 0b01110010, 0b01001000, 0b00010111, 0b10100111, 0b10010110, 0b00100000,
+ 0b11010000, 0b00001110, 0b00011101, 0b11011010, 0b11110111, 0b11010010, 0b10101110, 0b11100101
};
//Initialize the radio class, supplying the Gold Codes that correspond to 0 and 1
-SpriteRadio radio = SpriteRadio(prn_2, prn_1);
+SpriteRadio radio = SpriteRadio(prn2, prn3);
SpriteMag mag = SpriteMag();
View
71 DevelopmentKit/Energia/CompassDemo01/CompassDemo01.ino
@@ -1,71 +0,0 @@
-#include <SpriteRadio.h>
-#include <SpriteMag.h>
-
-static unsigned char prn0[64] = {
- 0b00000000, 0b01110110, 0b10101101, 0b01010110, 0b00010111, 0b01111010, 0b00111000, 0b10001011,
- 0b10010011, 0b10110001, 0b00110001, 0b00100110, 0b00101010, 0b11110111, 0b01010011, 0b01101011,
- 0b01011110, 0b11111111, 0b00000110, 0b01000111, 0b01000010, 0b01010010, 0b11101011, 0b11000100,
- 0b00001101, 0b00100110, 0b01010011, 0b01001001, 0b11101110, 0b00001110, 0b11101101, 0b11110010,
- 0b00000111, 0b10010010, 0b01110100, 0b00010010, 0b10111101, 0b00011000, 0b10001010, 0b00101011,
- 0b10101011, 0b10001100, 0b10111110, 0b00001110, 0b00000111, 0b11011101, 0b11101000, 0b00011110,
- 0b10011000, 0b01010101, 0b10111000, 0b01101000, 0b01001111, 0b11011111, 0b00111001, 0b01100011,
- 0b11001011, 0b10111010, 0b01011111, 0b00100100, 0b11011010, 0b10000000, 0b01010000, 0b10111110
-};
-
-static unsigned char prn1[64] = {
- 0b11111111, 0b01101110, 0b10000101, 0b10111011, 0b00011100, 0b11111101, 0b00111111, 0b11000110,
- 0b11000000, 0b10101111, 0b11101000, 0b11011101, 0b10010011, 0b00111011, 0b01100010, 0b00010010,
- 0b11111101, 0b11011111, 0b00010100, 0b11000000, 0b11010001, 0b00100011, 0b00100011, 0b01010100,
- 0b10010000, 0b01011001, 0b00000001, 0b01111111, 0b01001110, 0b11000010, 0b01001000, 0b10110111,
- 0b00111111, 0b00111100, 0b00100010, 0b00010001, 0b11000101, 0b10010011, 0b11010011, 0b00001110,
- 0b00110000, 0b10010110, 0b11000110, 0b00010001, 0b01100010, 0b01100011, 0b11111101, 0b01000000,
- 0b01100100, 0b10100001, 0b00100111, 0b01000111, 0b11101111, 0b10000111, 0b10100000, 0b10111101,
- 0b01111101, 0b01010000, 0b10001101, 0b11001100, 0b01011000, 0b10011010, 0b10111100, 0b10011100
-};
-
-//Initialize the radio class, supplying the Gold Codes that correspond to 0 and 1
-SpriteRadio radio = SpriteRadio(prn0, prn1);
-
-SpriteMag mag = SpriteMag();
-
-float declination = -10*(PI/180);
-
-void setup() {
- pinMode(5, OUTPUT);
- radio.txInit();
- mag.init();
- Serial.begin(9600);
-}
-
-void loop() {
- //Blink LED while we're doing stuff
- digitalWrite(5, HIGH);
-
- MagneticField b = mag.read();
-
- //Calculate heading in radians from magnetic field components
- float heading = atan2(b.y, b.x);
-
- //correct for declination
- heading += declination;
-
- //Scale between 0 and 2*PI
- if(heading < 0) heading += 2*PI;
- if(heading > 2*PI) heading -= 2*PI;
-
- //Convert to degrees
- heading = heading*(180/PI);
-
- char heading_string[5];
-
- sprintf(heading_string,"%3i",int(heading));
- heading_string[3] = '\n';
-
- Serial.print(heading_string);
-
- radio.transmit(heading_string,4);
-
- digitalWrite(5,LOW);
-
- delay(500);
-}
View
34 DevelopmentKit/Energia/RadioBeacon/RadioBeacon.ino
@@ -6,28 +6,20 @@
modulated at 64 kbps on a 437.24 MHz carrier.
*/
-unsigned char prn1[64] = {
- 0b10101010, 0b11110111, 0b11100111, 0b10100100, 0b11111001, 0b01111101, 0b00000010, 0b11000100,
- 0b11001110, 0b11110101, 0b10110111, 0b01010110, 0b10010111, 0b01000100, 0b00010000, 0b11010111,
- 0b01100001, 0b00011111, 0b11110001, 0b10000010, 0b10001110, 0b11010000, 0b10111000, 0b01110000,
- 0b01110100, 0b11010101, 0b00110001, 0b11101101, 0b10011111, 0b10111011, 0b10011100, 0b11000011,
- 0b00010111, 0b10011010, 0b00110010, 0b00000001, 0b00101000, 0b01111001, 0b00110111, 0b00011100,
- 0b10001001, 0b00001001, 0b11010111, 0b11110101, 0b00100011, 0b01101010, 0b00001100, 0b11001010,
- 0b01010100, 0b01010011, 0b10001010, 0b11100101, 0b01100000, 0b00110111, 0b10001000, 0b10110101,
- 0b10010010, 0b01011001, 0b10110001, 0b10100111, 0b10000001, 0b11110110, 0b01011011, 0b11100000
-};
-unsigned char prn2[64] = {
- 0b10101010, 0b10000001, 0b01001010, 0b11110010, 0b11101110, 0b00000111, 0b00111010, 0b01001111,
- 0b01011101, 0b01000100, 0b10000110, 0b01110000, 0b10111101, 0b10110011, 0b01000011, 0b10111100,
- 0b00111111, 0b11100000, 0b11110111, 0b11000101, 0b11001100, 0b10000010, 0b01010011, 0b10110100,
- 0b01111001, 0b11110011, 0b01100010, 0b10100100, 0b01110001, 0b10110101, 0b01110001, 0b00110001,
- 0b00010000, 0b00001000, 0b01000110, 0b00010011, 0b10010101, 0b01100001, 0b10111101, 0b00110111,
- 0b00100010, 0b10000101, 0b01101001, 0b11111011, 0b00100100, 0b10110111, 0b11100100, 0b11010100,
- 0b11001100, 0b00000110, 0b00110010, 0b10001101, 0b00101111, 0b11101000, 0b10110001, 0b11010110,
- 0b01011001, 0b11100011, 0b11101110, 0b10000011, 0b01011011, 0b01110110, 0b00001011, 0b01011110
+static unsigned char prn0[80] = {
+ 0b00001101, 0b11111010, 0b00011001, 0b00101101, 0b11101111, 0b11011000, 0b11011100, 0b01110100,
+ 0b11100001, 0b11110101, 0b10111010, 0b01000011, 0b10000110, 0b00011011, 0b11111011, 0b11001001,
+ 0b11000100, 0b01011001, 0b11010100, 0b11110011, 0b10011101, 0b11100110, 0b01100010, 0b11100000,
+ 0b01010000, 0b01001011, 0b00101010, 0b10011111, 0b00110110, 0b11110110, 0b00101111, 0b11001010,
+ 0b11000001, 0b00110011, 0b10000101, 0b11010101, 0b00001010, 0b10010001, 0b01000010, 0b10010101,
+ 0b00000001, 0b11110100, 0b00010001, 0b11111101, 0b00000000, 0b10000101, 0b10110011, 0b00010100,
+ 0b11111100, 0b10101111, 0b01100010, 0b11100011, 0b00101001, 0b11111111, 0b00111100, 0b01010000,
+ 0b01010110, 0b11110110, 0b01100110, 0b10001001, 0b10110010, 0b11000000, 0b10011000, 0b01000100,
+ 0b10011100, 0b10111010, 0b10111001, 0b01100101, 0b10110100, 0b01111011, 0b10000010, 0b10010110,
+ 0b11000010, 0b01001000, 0b11011000, 0b10101110, 0b10001111, 0b00011001, 0b01111010, 0b10001101
};
-SpriteRadio m_radio = SpriteRadio(prn1, prn2);
+SpriteRadio m_radio = SpriteRadio(prn0, prn0);
void setup() {
pinMode(5, OUTPUT);
@@ -39,7 +31,7 @@ void loop() {
//Blink LED, wait a second
digitalWrite(5, HIGH);
- m_radio.rawTransmit(prn1,64);
+ m_radio.rawTransmit(prn0,64);
delay(300);
digitalWrite(5, LOW);
delay(700);
View
47 DevelopmentKit/Energia/RadioBeacon23/RadioBeacon23.ino
@@ -1,47 +0,0 @@
-#include <SpriteRadio.h>
-
-/*
- This example code will configure the CC1101 radio core in the CC430 to
- transmit a PRN sequence once per second. The output signal will be MSK
- modulated at 64 kbps on a 437.24 MHz carrier.
-*/
-
-static unsigned char prn2[64] = {
- 0b00000001, 0b01011110, 0b11010100, 0b01100001, 0b00001011, 0b11110011, 0b00110001, 0b01011100,
- 0b01100110, 0b10010010, 0b01011011, 0b00101010, 0b11100000, 0b10100011, 0b00000000, 0b11100001,
- 0b10111011, 0b10011111, 0b00110001, 0b11001111, 0b11110111, 0b11000000, 0b10110010, 0b01110101,
- 0b10101010, 0b10100111, 0b10100101, 0b00010010, 0b00001111, 0b01011011, 0b00000010, 0b00111101,
- 0b01001110, 0b01100000, 0b10001110, 0b00010111, 0b00110100, 0b10000101, 0b01100001, 0b01000101,
- 0b00000110, 0b10100010, 0b00110110, 0b00101111, 0b10101001, 0b00011111, 0b11010111, 0b11111101,
- 0b10011101, 0b01001000, 0b00011001, 0b00011000, 0b10101111, 0b00110110, 0b10010011, 0b00000000,
- 0b00010000, 0b10000101, 0b00101000, 0b00011101, 0b01011100, 0b10101111, 0b01100100, 0b11011010
-};
-
-static unsigned char prn3[64] = {
- 0b11111101, 0b00111110, 0b01110111, 0b11010101, 0b00100101, 0b11101111, 0b00101100, 0b01101001,
- 0b00101010, 0b11101001, 0b00111100, 0b11000100, 0b00000111, 0b10010011, 0b11000101, 0b00000111,
- 0b00110111, 0b00011111, 0b01111011, 0b11010001, 0b10111010, 0b00000111, 0b10010000, 0b00110111,
- 0b11011111, 0b01011010, 0b11101101, 0b11001000, 0b10001100, 0b01101001, 0b10010111, 0b00101001,
- 0b10101100, 0b11011001, 0b11010110, 0b00011010, 0b11010110, 0b10101000, 0b00000101, 0b11010011,
- 0b01101010, 0b11001011, 0b11010110, 0b01010010, 0b00111111, 0b11100111, 0b10000010, 0b10000110,
- 0b01101110, 0b10011010, 0b01100101, 0b10100110, 0b00101110, 0b01010100, 0b11110100, 0b01111010,
- 0b11001011, 0b00101110, 0b01100011, 0b10111111, 0b01010100, 0b11000100, 0b11010100, 0b01010100
-};
-
-SpriteRadio m_radio = SpriteRadio(prn2, prn3);
-
-void setup() {
- pinMode(5, OUTPUT);
- m_radio.txInit();
-};
-
-
-void loop() {
-
- //Blink LED, wait a second
- digitalWrite(5, HIGH);
- m_radio.rawTransmit(prn3,64);
- delay(300);
- digitalWrite(5, LOW);
- delay(700);
-};
View
47 DevelopmentKit/Energia/RadioData/RadioData.ino
@@ -7,29 +7,34 @@
two different 511 bit Gold Codes.
*/
-unsigned char prn0[64] = {
- 0b10101010, 0b11110111, 0b11100111, 0b10100100, 0b11111001, 0b01111101, 0b00000010, 0b11000100,
- 0b11001110, 0b11110101, 0b10110111, 0b01010110, 0b10010111, 0b01000100, 0b00010000, 0b11010111,
- 0b01100001, 0b00011111, 0b11110001, 0b10000010, 0b10001110, 0b11010000, 0b10111000, 0b01110000,
- 0b01110100, 0b11010101, 0b00110001, 0b11101101, 0b10011111, 0b10111011, 0b10011100, 0b11000011,
- 0b00010111, 0b10011010, 0b00110010, 0b00000001, 0b00101000, 0b01111001, 0b00110111, 0b00011100,
- 0b10001001, 0b00001001, 0b11010111, 0b11110101, 0b00100011, 0b01101010, 0b00001100, 0b11001010,
- 0b01010100, 0b01010011, 0b10001010, 0b11100101, 0b01100000, 0b00110111, 0b10001000, 0b10110101,
- 0b10010010, 0b01011001, 0b10110001, 0b10100111, 0b10000001, 0b11110110, 0b01011011, 0b11100000
+unsigned char prn2[80] = {
+ 0b00111010, 0b00010010, 0b01111101, 0b10011010, 0b01010000, 0b10111011, 0b10101101, 0b10100111,
+ 0b01100110, 0b00100011, 0b01010011, 0b01001101, 0b10011110, 0b01110100, 0b00010100, 0b11101110,
+ 0b11010101, 0b00111110, 0b10000111, 0b00111101, 0b11101010, 0b01111111, 0b11101001, 0b01100001,
+ 0b00010001, 0b01100111, 0b10000000, 0b11100011, 0b11101101, 0b00101110, 0b10010000, 0b11100001,
+ 0b11000101, 0b11111101, 0b10010010, 0b10000001, 0b00100000, 0b11010100, 0b01001000, 0b11000001,
+ 0b00000110, 0b00100100, 0b01010110, 0b00001001, 0b00000010, 0b10010011, 0b01111111, 0b01000111,
+ 0b00001110, 0b00010010, 0b11101001, 0b01101111, 0b10001110, 0b00000011, 0b11001101, 0b00010001,
+ 0b00001101, 0b00101111, 0b11111100, 0b10101111, 0b01111001, 0b11000010, 0b11111001, 0b01010110,
+ 0b11101110, 0b01010000, 0b01011100, 0b11110011, 0b01100101, 0b10010101, 0b10001000, 0b11001101,
+ 0b11001011, 0b01101011, 0b10111010, 0b00010100, 0b10110011, 0b01111100, 0b10010000, 0b10111001
};
-unsigned char prn1[64] = {
- 0b10101010, 0b10000001, 0b01001010, 0b11110010, 0b11101110, 0b00000111, 0b00111010, 0b01001111,
- 0b01011101, 0b01000100, 0b10000110, 0b01110000, 0b10111101, 0b10110011, 0b01000011, 0b10111100,
- 0b00111111, 0b11100000, 0b11110111, 0b11000101, 0b11001100, 0b10000010, 0b01010011, 0b10110100,
- 0b01111001, 0b11110011, 0b01100010, 0b10100100, 0b01110001, 0b10110101, 0b01110001, 0b00110001,
- 0b00010000, 0b00001000, 0b01000110, 0b00010011, 0b10010101, 0b01100001, 0b10111101, 0b00110111,
- 0b00100010, 0b10000101, 0b01101001, 0b11111011, 0b00100100, 0b10110111, 0b11100100, 0b11010100,
- 0b11001100, 0b00000110, 0b00110010, 0b10001101, 0b00101111, 0b11101000, 0b10110001, 0b11010110,
- 0b01011001, 0b11100011, 0b11101110, 0b10000011, 0b01011011, 0b01110110, 0b00001011, 0b01011110
+
+unsigned char prn3[80] = {
+ 0b01100010, 0b00101010, 0b11010000, 0b01000010, 0b10010001, 0b00011110, 0b00111111, 0b11010011,
+ 0b11101110, 0b01011000, 0b01101000, 0b01011111, 0b10110110, 0b11000100, 0b00100101, 0b10000111,
+ 0b11100110, 0b10010111, 0b01110011, 0b01101111, 0b01110010, 0b11010101, 0b01110101, 0b11100010,
+ 0b11010010, 0b00010010, 0b01111110, 0b01100110, 0b10000001, 0b01000111, 0b01010001, 0b10011100,
+ 0b11001000, 0b10101111, 0b10101011, 0b01111101, 0b01011110, 0b00011011, 0b01010110, 0b00111101,
+ 0b00001110, 0b01010100, 0b10011110, 0b00010101, 0b00000100, 0b10101000, 0b00101011, 0b10110011,
+ 0b00011001, 0b11010100, 0b01110101, 0b11111010, 0b01100110, 0b00000110, 0b11011110, 0b11010010,
+ 0b11100001, 0b01000101, 0b01010010, 0b11000100, 0b00100100, 0b11000100, 0b01011010, 0b01100000,
+ 0b01111001, 0b01101111, 0b01110010, 0b01001000, 0b00010111, 0b10100111, 0b10010110, 0b00100000,
+ 0b11010000, 0b00001110, 0b00011101, 0b11011010, 0b11110111, 0b11010010, 0b10101110, 0b11100101
};
//Initialize the radio class, supplying the Gold Codes that correspond to 0 and 1
-SpriteRadio m_radio = SpriteRadio(prn0, prn1);
+SpriteRadio m_radio = SpriteRadio(prn2, prn3);
void setup() {
pinMode(5, OUTPUT);
@@ -43,7 +48,7 @@ void loop() {
m_radio.transmit("Hello Earthlings\n", 17);
digitalWrite(5, LOW);
- //Wait a second
- delay(1000);
+ //Wait a while
+ delay(3000);
};
View
50 DevelopmentKit/Energia/RadioData23/RadioData23.ino
@@ -1,50 +0,0 @@
-#include <SpriteRadio.h>
-
-/*
- This example code will configure the CC1101 radio core in the CC430 to
- repeatedly transmit a text message. The output signal will be MSK modulated
- at 64 kbps on a 437.5 MHz carrier and bits are encoded by alternating between
- two different 511 bit Gold Codes.
-*/
-
-static unsigned char prn2[64] = {
- 0b00000001, 0b01011110, 0b11010100, 0b01100001, 0b00001011, 0b11110011, 0b00110001, 0b01011100,
- 0b01100110, 0b10010010, 0b01011011, 0b00101010, 0b11100000, 0b10100011, 0b00000000, 0b11100001,
- 0b10111011, 0b10011111, 0b00110001, 0b11001111, 0b11110111, 0b11000000, 0b10110010, 0b01110101,
- 0b10101010, 0b10100111, 0b10100101, 0b00010010, 0b00001111, 0b01011011, 0b00000010, 0b00111101,
- 0b01001110, 0b01100000, 0b10001110, 0b00010111, 0b00110100, 0b10000101, 0b01100001, 0b01000101,
- 0b00000110, 0b10100010, 0b00110110, 0b00101111, 0b10101001, 0b00011111, 0b11010111, 0b11111101,
- 0b10011101, 0b01001000, 0b00011001, 0b00011000, 0b10101111, 0b00110110, 0b10010011, 0b00000000,
- 0b00010000, 0b10000101, 0b00101000, 0b00011101, 0b01011100, 0b10101111, 0b01100100, 0b11011010
-};
-
-static unsigned char prn3[64] = {
- 0b11111101, 0b00111110, 0b01110111, 0b11010101, 0b00100101, 0b11101111, 0b00101100, 0b01101001,
- 0b00101010, 0b11101001, 0b00111100, 0b11000100, 0b00000111, 0b10010011, 0b11000101, 0b00000111,
- 0b00110111, 0b00011111, 0b01111011, 0b11010001, 0b10111010, 0b00000111, 0b10010000, 0b00110111,
- 0b11011111, 0b01011010, 0b11101101, 0b11001000, 0b10001100, 0b01101001, 0b10010111, 0b00101001,
- 0b10101100, 0b11011001, 0b11010110, 0b00011010, 0b11010110, 0b10101000, 0b00000101, 0b11010011,
- 0b01101010, 0b11001011, 0b11010110, 0b01010010, 0b00111111, 0b11100111, 0b10000010, 0b10000110,
- 0b01101110, 0b10011010, 0b01100101, 0b10100110, 0b00101110, 0b01010100, 0b11110100, 0b01111010,
- 0b11001011, 0b00101110, 0b01100011, 0b10111111, 0b01010100, 0b11000100, 0b11010100, 0b01010100
-};
-
-//Initialize the radio class, supplying the Gold Codes that correspond to 0 and 1
-SpriteRadio m_radio = SpriteRadio(prn2, prn3);
-
-void setup() {
- pinMode(5, OUTPUT);
- m_radio.txInit();
-};
-
-
-void loop() {
- //Blink LED while transmitter is on
- digitalWrite(5, HIGH);
- m_radio.transmit("Hello Earthlings\n", 17);
- digitalWrite(5, LOW);
-
- //Wait a second
- delay(2000);
-};
-
Please sign in to comment.
Something went wrong with that request. Please try again.