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
void setup() { | |
Serial.begin(9600); | |
String hexstring = "FB"; | |
int number = (int) strtol( &hexstring[0], NULL, 16); | |
Serial.println(number); | |
} | |
void loop() { |
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
void setup() { | |
Serial.begin(9600); | |
String stringValue; | |
String stringValue1; | |
String stringValue2; | |
stringValue = "ReadData: 1997"; |
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
#include <avr/boot.h> | |
void setup(void) | |
{ | |
Serial.begin(9600); | |
Serial.println(GetUID()); | |
} | |
void loop() | |
{ |
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
unsigned int i = 0; | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
char buffer[50]; | |
sprintf(buffer, "Value: %x", i++); | |
Serial.println(buffer); |
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
#include <avr/boot.h> | |
void print_val(char *msg, uint8_t val) | |
{ | |
Serial.print(msg); | |
Serial.println(val, HEX); | |
} | |
void setup(void) | |
{ |
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
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(13, 12); // RX, TX | |
void setup() { | |
Serial.begin(38400); //Baud Rate | |
mySerial.begin(38400); | |
} | |
void loop() { |
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
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(10, 11); // RX, TX | |
void setup() { | |
Serial.begin(9600); | |
while (!Serial) { | |
; | |
} |
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
#include <iostream> | |
#include <stdio.h> | |
#include <termios.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <wiringPi.h> | |
#include <wiringSerial.h> | |
#include <vector> |
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
<asp:Repeater ID="categoryRP" runat="server"> | |
<ItemTemplate> | |
<tr> | |
<td> | |
<asp:Label ID="Id" runat="server" Text='<%# Eval("Id") %>' /> | |
</td> | |
<td> | |
<asp:Label ID="Name" runat="server" Text='<%# Eval("Name") %>' /> | |
</td> | |
<td> |