// Custom chips playground
// See https://link.wokwi.com/custom-chips-alpha for more info
#include <Adafruit_GFX.h> // OLED Library
#include <Adafruit_SSD1306.h> // OLED Library
#include <Wire.h> // I2C Library
/*
#include "MAX30105.h" // MAX3010x library
#include "heartRate.h" // Heart rate calculating algorithm
MAX30105 particleSensor;
const byte RATE_SIZE = 4; // Increase this for more averaging. 4 is good.
byte rates[RATE_SIZE]; // Array of heart rates
byte rateSpot = 0;
long lastBeat = 0; // Time at which the last beat occurred
float beatsPerMinute;
int beatAvg;
*/
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); //Declaring the display name (display)
void setup() {
Serial.begin(9600);
Wire.setClock(400000); // Set I2C speed to 400kHz
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // Start the OLED display
display.setTextColor(WHITE);
Wire.begin();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,0);
display.println(" arduinoecia.com.br");
display.println();
display.setTextSize(2);
display.print(" Arduino");
display.println(" e");
display.println(" Cia ");
display.display();
delay(100);
}
void loop() {
Serial.println("escrevi");
delay(1000);
}