Skip to content

Instantly share code, notes, and snippets.

View jdieg0's full-sized avatar

Diego jdieg0

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jdieg0 on github.
  • I am jdieg0 ( on keybase.
  • I have a public key ASD-sE-leO4ZXvUUER_dGADpq-AMHYDr5ML6zZiGTFOczgo

To claim this, I am signing this object:

jdieg0 / write-random.ino
Last active June 11, 2017 02:44
Zufallswerte mit Zeitstempel auf SD-Karte des Wemos D1 Mini schreiben.
View write-random.ino
#include <SD.h>
const int CS = D8;
const char FILENAME[] = "RANDOM.TXT";
unsigned long time;
int randNumber;
File myFile;
jdieg0 / write-text.ino
Last active June 11, 2017 01:54
Textzeile mit dem Wemos-Micro-SD-Karten-Shield in Datei schreiben.
View write-text.ino
#include <SD.h>
// Chip-Select-Pin für SPI definieren
const int CS = D8;
File myFile;
void setup() {
Serial.print("\r\nInitialisiere SD-Karte...");
jdieg0 / cardinfo.ino
Created June 10, 2017 16:44
Für das Micro-SD-Karten-Shield für den Wemos D1 Mini angepasstes CardInfo-Programm aus den Arduino SD-Examples.
View cardinfo.ino
SD card test
This example shows how use the utility libraries on which the'
SD library is based in order to get info about your SD card.
Very useful for testing a card when you're not sure whether its working or not.
The circuit:
* SD card attached to SPI bus as follows:
** MOSI - pin 11 on Arduino Uno/Duemilanove/Diecimila
jdieg0 / bmp180-shield.ino
Created June 9, 2017 15:28
Codebeispiel für die Luftdruckbestimmung mit dem BMP180-Shield für den Wemos D1 Mini
View bmp180-shield.ino
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BMP085_U.h>
Adafruit_BMP085_Unified bmp = Adafruit_BMP085_Unified(10085);
void setup() {
// Serielle Kommunikation initialisieren
Serial.println("\r\n\r\nDrucksensor BMP180\r\n");
jdieg0 / blink.ino
Last active June 9, 2017 16:19
Blink-Beispiel für Wemos D1 mini
View blink.ino
jdieg0 / sketch.ino
Created June 8, 2017 14:48
Aufbau eines Arduino-Sketches
View sketch.ino
// Die Setup-Funktion wird einmal zu Beginn des Programms ausgeführt
void setup() {
// Code für die Initialisierung
// Die Loop-Funktion wird immer und immer wieder ausgeführt
void loop() {
// Code
View philax_12_ampel.c
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* any later version. *
#include "asuro.h"