Skip to content

Instantly share code, notes, and snippets.

View MartinRGB's full-sized avatar
🎯
Focusing

MartinRGB MartinRGB

🎯
Focusing
View GitHub Profile
@MartinRGB
MartinRGB / NanoPi_Duo2_Init.md
Last active November 8, 2023 13:36
NanoPi Duo2 Init

image

Putty

image

image

GPIO

image

ILI9341_T4

LCD

#define PIN_SCK     13      // mandatory
#define PIN_MISO    12      // mandatory (if the display has no MISO line, set this to 255 but then VSync will be disabled)
#define PIN_MOSI 11 // mandatory
@MartinRGB
MartinRGB / uno_r3_st7789.md
Created October 29, 2023 22:30
Uno R3 ST7789

image

/**************************************************************************
  This is a library for several Adafruit displays based on ST77* drivers.

  This example works with the 1.14" TFT breakout
    ----> https://www.adafruit.com/product/4383
  The 1.3" TFT breakout
@MartinRGB
MartinRGB / ST7789_arduino.md
Last active October 28, 2023 21:36
st7789 arduino
@MartinRGB
MartinRGB / Nologotech_ESP32C3SuperMini_ArduinoNano_STM32F411CEU6.md
Last active November 2, 2023 04:17
Hello world of nologotech ESP32C3SuperMini/Arduino Nano/STM32F411CEU6
#include "SevSeg.h"
SevSeg sevseg; //Initiate a seven segment controller object
// constants won't change. They're used here to set pin numbers:
const int SENSOR_PIN = A4; // the Arduino's input pin that connects to the sensor's SIGNAL pin
const int LED_PIN = A5;
const int FAN_PIN = A0;
const int VOLTAGE_PIN = A2;
const int BUTTON_PIN = 1;
#define MQ2pin (A1)