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 (https://keybase.io/jdieg0) on keybase.
  • I have a public key ASD-sE-leO4ZXvUUER_dGADpq-AMHYDr5ML6zZiGTFOczgo

To claim this, I am signing this object:

@jdieg0
jdieg0 / write-random.ino
Last active June 11, 2017 02:44
Zufallswerte mit Zeitstempel auf SD-Karte des Wemos D1 Mini schreiben.
#include <SD.h>
const int CS = D8;
const char FILENAME[] = "RANDOM.TXT";
unsigned long time;
int randNumber;
File myFile;
@jdieg0
jdieg0 / write-text.ino
Last active June 11, 2017 01:54
Textzeile mit dem Wemos-Micro-SD-Karten-Shield in Datei schreiben.
#include <SD.h>
// Chip-Select-Pin für SPI definieren
const int CS = D8;
File myFile;
void setup() {
Serial.begin(9600);
Serial.print("\r\nInitialisiere SD-Karte...");
@jdieg0
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.
/*
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
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
#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.begin(9600);
Serial.println("\r\n\r\nDrucksensor BMP180\r\n");
@jdieg0
jdieg0 / blink.ino
Last active June 9, 2017 16:19
Blink-Beispiel für Wemos D1 mini
@jdieg0
jdieg0 / sketch.ino
Created June 8, 2017 14:48
Aufbau eines Arduino-Sketches
// 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
}
/***************************************************************************
* *
* 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"