Skip to content

Instantly share code, notes, and snippets.

View jecrespo's full-sized avatar
🏠
Working from home

Enrique Crespo jecrespo

🏠
Working from home
View GitHub Profile
#include <LiquidCrystal.h>
byte const interruptPin2 = 2;
byte const interruptPin3 = 3;
int estado;
int cuenta;
unsigned long inicial;
int minutos;
int segundos;
int horas;
@jecrespo
jecrespo / Concert.sol
Created February 2, 2019 11:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.0+commit.1d4f565a.js&optimize=false&gist=
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;
@jecrespo
jecrespo / MessaggeStore.sol
Created February 2, 2019 10:38
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity ^0.5.0;
contract MessageStore {
string private _message;
address public _owner;
constructor() public{
_owner = msg.sender;
}
@jecrespo
jecrespo / MessaggeStore.sol
Created February 2, 2019 09:54
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity ^0.5.0;
contract MessageStore {
string private _message;
address private _owner;
constructor() public{
_owner = msg.sender;
}
@jecrespo
jecrespo / snippets_to_do.md
Created December 4, 2017 18:06
snippets to do list

Snippets to do List

  • Arduino Read Serial
  • Arduino Web Server
  • Web responsive button
@jecrespo
jecrespo / Arduino_Read_Serial.ino
Last active December 4, 2017 18:07
Arduino Read Serial Snippet
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
String buffer = ""; //empty buffer
do {
char c = Serial.read();
delay(5);