Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void grafica() {
- Valor = 0;
- for (int n = 0; n < Filtro; n++) {
- Valor = Valor + analogRead(Sinal);
- }
- Valor = Valor / Filtro ;
- Valor = Valor * Ampli ;
- Valores[127] = map(Valor, 0, 1023, 63, 10); // Mapea a medida
- for (int i = 0; i < 127; i++) {
- Valores[i] = Valores[i + 1];
- //TempoAct = millis();
- myOLED.setPixel (i, Valores[i]);
- myOLED.setFont(MediumNumbers);
- }
- Pinta();
- }
Add Comment
Please, Sign In to add comment