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
// ChatGPT: Here's a C# console application that sets the resolution, scaling, and orientation of each monitor: | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Management; | |
using System.Runtime.InteropServices; | |
namespace MonitorSettings | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
namespace find_rep | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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 <FastLED.h> | |
FASTLED_USING_NAMESPACE | |
//#define _DEBUG | |
#define ARRAY_SIZE(A) (sizeof(A) / sizeof((A)[0])) | |
#define DATA_PIN 3 | |
#define LED_TYPE WS2811 |
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 DEBUG | |
#define USE_DEMO | |
#define FASTLED_INTERNAL | |
#include <BLEDevice.h> | |
#include <BLEUtils.h> | |
#include <BLEServer.h> | |
#include <FastLED.h> | |
#define SERVICE_UUID "e7143cad-37d3-433c-a526-8c9c71f551a4" |
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
long count = 0; | |
void loop() { | |
if (count++ >= 2000000) | |
{ | |
count = 0; | |
delay(1000); | |
} | |
} | |