This file contains hidden or 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
const int led_amarelo = 10; | |
const int led_verde = 11; | |
const int led_vermelho = 12; | |
char led; | |
void setup() { | |
pinMode(led_amarelo, OUTPUT); | |
pinMode(led_verde, OUTPUT); | |
pinMode(led_vermelho, OUTPUT); | |
Serial.begin(9600); |
This file contains hidden or 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
[Unit] | |
Description=CPU powersave | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/cpupower -c all frequency-set -g powersave | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or 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
inicio | |
enquanto (verdadeiro) farei{ | |
se ((luz(2) > 35) e (luz(4) > 35))entao { | |
frente(120) | |
escrever(1, "Seguir em frente linha reta") | |
} senao se ((luz(2) < 20) e (luz(4) > 35))entao { | |
direita(300) | |
escrever(2, "Virar pra direita") | |
} senao se ((luz(2) > 35) e (luz(4) < 20))entao { | |
esquerda(300) |