- Arduino Read Serial
- Arduino Web Server
- Web responsive button
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 <LiquidCrystal.h> | |
byte const interruptPin2 = 2; | |
byte const interruptPin3 = 3; | |
int estado; | |
int cuenta; | |
unsigned long inicial; | |
int minutos; | |
int segundos; | |
int horas; |
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
pragma solidity ^0.5.0; | |
contract Concert { | |
address payable owner; | |
string public concertName; | |
uint public ticketPrice; | |
mapping(address => bool) customer; | |
constructor(string memory _concertName, uint _etherPrice) public{ | |
owner = msg.sender; |
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
pragma solidity ^0.5.0; | |
contract MessageStore { | |
string private _message; | |
address public _owner; | |
constructor() public{ | |
_owner = msg.sender; | |
} | |
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
pragma solidity ^0.5.0; | |
contract MessageStore { | |
string private _message; | |
address private _owner; | |
constructor() public{ | |
_owner = msg.sender; | |
} | |
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); | |
} | |
void loop() { | |
if (Serial.available() > 0) { | |
String buffer = ""; //empty buffer | |
do { | |
char c = Serial.read(); | |
delay(5); |