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
#include <Arduino.h> | |
/// @file ColorPalette.ino | |
/// @brief Demonstrates how to use @ref ColorPalettes | |
/// @example ColorPalette.ino | |
/// Note this is not my file, but I am linking it here for if you need the code | |
/// from the youtube video: https://www.youtube.com/watch?v=Wf8HES75ies&ab_channel=CMoz | |
#include <FastLED.h> | |
#define LED_PIN 15 // <-- change this to match the pin you have chosen |
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
// 4 oled keyboard current working code | |
#include <Arduino.h> | |
#include "T-Keyboard-S3-Pro_Drive.h" | |
#include "pin_config.h" | |
#include "Arduino_GFX_Library.h" | |
#include "USB.h" | |
#include "USBHIDKeyboard.h" | |
#include "USBHIDConsumerControl.h" | |
#include "Arduino_DriveBus_Library.h" |
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
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SH110X.h> | |
// FeatherWing OLED default I2C address is 0x3C | |
Adafruit_SH1107 display(64, 128, &Wire); | |
void setup() { | |
Serial.begin(115200); | |
delay(1000); |
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
#include <FastLED.h> | |
#define LED_PIN 3 | |
#define NUM_LEDS 20 | |
#define BRIGHTNESS 128 // Half of max (0-255) | |
#define LED_TYPE WS2812B | |
#define COLOR_ORDER GRB | |
CRGB leds[NUM_LEDS]; |
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
/* | |
* This code is for controlling a strip of WS2812B LEDs using the FastLED library. | |
* It sets the first two LEDs to blue and turns off the rest. | |
* The brightness is set to half of the maximum value. | |
*/ | |
#include <FastLED.h> | |
#define LED_PIN 3 |
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
// for platformio | |
#include <Arduino.h> | |
#include <SPI.h> | |
#include <MFRC522.h> // RFID LIBRARY | |
#include <WiFi.h> | |
#include <Preferences.h> // To save data in flash memory | |
// Tag UID: E3 5B 85 0D | |
// Define the pins used for the RC522 RFID module |
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
import java.util.LinkedList; | |
// our product class that we created to create a product | |
class Product { | |
private String name; | |
private double price; | |
private String description; | |
// Getters and setters for product properties |
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
import java.util.LinkedList; | |
class ProductItem { | |
private int productId; | |
private String productName; | |
public ProductItem(int productId, String productName) { | |
this.productId = productId; | |
this.productName = productName; | |
} |
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
const int ledPin = 2; // User LED is connected to Pin 2 | |
// the setup function runs once when you press reset or power the board | |
void setup() { | |
// initialize digital pin LED_BUILTIN as an output. | |
pinMode(ledPin, OUTPUT); | |
} | |
// the loop function runs over and over again forever | |
void loop() { |
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
#include <Adafruit_CircuitPlayground.h> | |
uint8_t pixeln = 0; | |
int capsense[10]; | |
void setup() { | |
CircuitPlayground.begin(); | |
for(int i=0; i< CircuitPlayground.strip.numPixels(); i++) { | |
CircuitPlayground.setPixelColor(i, ( 0, 0, 255)); | |
CircuitPlayground.strip.show(); |
NewerOlder