This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PIN01 9 | |
#define PIN02 8 | |
#define PIN03 7 | |
#define PIN04 6 | |
#define PIN05 5 | |
#define PIN06 4 | |
#define PIN07 3 | |
#define PIN08 2 | |
#define PIN09 11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Basic demo for accelerometer readings from Adafruit MPU6050 | |
#include <Adafruit_MPU6050.h> | |
#include <Wire.h> | |
#include <BLEDevice.h> | |
#include <BLEUtils.h> | |
#include <BLEServer.h> | |
#include "driver/pcnt.h" |
OlderNewer