Compare commits
No commits in common. "878bb2f4402687a9636d9991ab68b69e8a9b7e6d" and "6480459e1b5f8648fb41e4c755f91923556fc767" have entirely different histories.
878bb2f440
...
6480459e1b
|
@ -1,39 +1,9 @@
|
||||||
#include <SPI.h>
|
|
||||||
#include <Wire.h>
|
|
||||||
#include <Adafruit_GFX.h>
|
|
||||||
#include <Adafruit_SSD1306.h>
|
|
||||||
|
|
||||||
#define SCREEN_WIDTH 128 // OLED display width, in pixels
|
|
||||||
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
|
|
||||||
|
|
||||||
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
|
|
||||||
// The pins for I2C are defined by the Wire-library.
|
|
||||||
// On an arduino UNO: A4(SDA), A5(SCL)
|
|
||||||
// On an arduino MEGA 2560: 20(SDA), 21(SCL)
|
|
||||||
// On an arduino LEONARDO: 2(SDA), 3(SCL), ...
|
|
||||||
#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)
|
|
||||||
#define SCREEN_ADDRESS 0x3C ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32
|
|
||||||
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
// put your setup code here, to run once:
|
||||||
|
|
||||||
// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
|
|
||||||
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
|
|
||||||
Serial.println(F("SSD1306 allocation failed"));
|
|
||||||
for(;;); // Don't proceed, loop forever
|
|
||||||
}
|
|
||||||
|
|
||||||
// Show initial display buffer contents on the screen --
|
|
||||||
// the library initializes this with an Adafruit splash screen.
|
|
||||||
display.display();
|
|
||||||
delay(2000); // Pause for 2 seconds
|
|
||||||
|
|
||||||
// Clear the buffer
|
|
||||||
display.clearDisplay();
|
|
||||||
|
|
||||||
// testanimate(logo_bmp, LOGO_WIDTH, LOGO_HEIGHT); // Animate bitmaps
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
// put your main code here, to run repeatedly:
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,11 +30,6 @@ Arduino Programm für unsere EtiMa
|
||||||
- Pfeil hoch = SCK
|
- Pfeil hoch = SCK
|
||||||
- Pfeil runter = MOSI
|
- Pfeil runter = MOSI
|
||||||
- Quadrat = MISO
|
- Quadrat = MISO
|
||||||
- Chip = ATMege 32u4
|
|
||||||
- Programmierung Arduino
|
|
||||||
- Adadfruit 1306 Library
|
|
||||||
- Adafruit GFX library
|
|
||||||
- Adafruit_BusIO library
|
|
||||||
- EtiMa: LT 50 (Von verschiedensten chinesischen Herstellern unter ähnlichem Namen)
|
- EtiMa: LT 50 (Von verschiedensten chinesischen Herstellern unter ähnlichem Namen)
|
||||||
|
|
||||||
Bei der in Deutschland gekauften Etiketiermaschine war trotz Metalgehäuse
|
Bei der in Deutschland gekauften Etiketiermaschine war trotz Metalgehäuse
|
||||||
|
|
Loading…
Reference in a new issue