This file contains 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
#include <M5Stack.h> | |
const uint16_t color = TFT_BLUE; | |
uint16_t bitmap[100][100]; | |
void setup() { | |
M5.begin(); | |
M5.Lcd.fillRect(30, 70, 100, 100, color); | |
for(int i=0; i<100; i++) for(int j=0; j<100; j++) bitmap[i][j]=color; | |
M5.Lcd.drawBitmap(160, 70, 100, 100, (uint16_t *)bitmap); |
This file contains 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
/* | |
* >>>>> T-I-N-Y S-P-A-C-E I-N-V-A-D-E-R-S for ESP8266 GPL v3 <<<< | |
* This version by Tobozo https://github.com/tobozo | |
* New display library + logic refactoring (still in progress) | |
* Demo: https://youtu.be/Kfvu-Jfe3oY | |
* | |
* Original version: | |
* | |
* >>>>> T-I-N-Y S-P-A-C-E I-N-V-A-D-E-R-S for ATTINY85 GPL v3 <<<< | |
* Programmer: Daniel Champagne 2018 |
This file contains 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
#include <SPI.h> | |
#include <LoRa.h> | |
#include "SSD1306.h" | |
#include<Arduino.h> | |
#include "Adafruit_BME280.h" // from https://github.com/Takatsuki0204/BME280-I2C-ESP32 | |
#define I2C_SDA 4 | |
#define I2C_SCL 15 | |
#define SEALEVELPRESSURE_HPA (1013.25) | |
#define BME280_ADD 0x76 |
This file contains 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
#include "Mac.h" | |
Mac::Mac(){ | |
for(int i=0;i<6;i++){ | |
adress[i] = 0x00; | |
} | |
} | |
Mac::Mac(uint8_t first, uint8_t second, uint8_t third, uint8_t fourth, uint8_t fifth, uint8_t sixth){ | |
adress[0] = first; |
This file contains 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
/* | |
* Multiplexed SSD1306 Demo | |
* Copyright © 2018-01-02 tobozo | |
* | |
* https://github.com/tobozo | |
* https://twitter.com/tobozotagada | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the “Software”), to deal in | |
* the Software without restriction, including without limitation the rights to |
This file contains 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 spacehuhn_width 128 | |
#define spacehuhn_height 128 | |
const uint8_t spacehuhn_bits[] = { | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | |
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, |
This file contains 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
/* | |
* SSD1306 Multiple monitor Demo | |
* Copyleft (c+) toboz Nov 2017 | |
* | |
*/ | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <U8g2lib.h> |
This file contains 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
/* | |
* SSD1306 Multiple monitor Demo | |
* Copyleft (c+) toboz Nov 2017 | |
* | |
*/ | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <U8g2lib.h> |
This file contains 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
/* | |
Rotatey Hector Nunchuck is placed under the MIT license | |
Copyleft (c+) 2017 tobozo | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |