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
import base64 | |
import hashlib | |
import hmac | |
import json | |
import time | |
from datetime import datetime, timedelta | |
def create_credentials(secret, suffix): | |
"""Creates credentials for Eturnal access available for 24 hours. | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash/ | |
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa | |
sudo apt-get update | |
sudo apt-get install gcc-arm-embedded | |
sudo apt-get install git | |
sudo apt-get install libnewlib-dev | |
sudo apt-get install python2.7 | |
sudo apt-get install python-pip | |
sudo apt-get install python3 |
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 "mbed.h" | |
#include "Timer.h" | |
#include "math.h" | |
#include "TextLCD.h" | |
#define CONVERSAO(x) (3.3*x) | |
TextLCD lcd(PTA13, PTD5, PTC9, PTC8, PTA5, PTA4); | |
AnalogIn medida(PTB0); |