Skip to content

Instantly share code, notes, and snippets.

View jlamch's full-sized avatar

Joanna Lamch jlamch

View GitHub Profile
param([string]$xml = 'Web.config', [string]$xdt = 'Web.Preprod.config')
if (!$xml -or !(Test-Path -path $xml -PathType Leaf)) {
throw "File not found. $xml";
}
if (!$xdt -or !(Test-Path -path $xdt -PathType Leaf)) {
throw "File not found. $xdt";
}
@jlamch
jlamch / Adelheid.kbd.json
Last active September 15, 2021 18:32 — forked from floookay/Adelheid.kbd.json
Adelheid
[
{
"backcolor": "#141414",
"name": "Adelheid",
"author": "floookay",
"switchMount": "cherry",
"switchBrand": "gateron",
"pcb": true
},
[
[
{
"name": "Quefrency Matrix Mapping"
},
[
"Enc 1\n\n\n\n\n\n\n\n\nA9",
"rotary\n\n\n\n\n\n\n\n\nA2",
{
"x": 1.5
},
#include "Arduino.h"
#include "OledDisplay.h"
#include "RingBuffer.h"
#include "AudioClassV2.h"
#include "config.h"
#include "utility.h"
static AudioClass &Audio = AudioClass::getInstance();
static int AUDIO_SIZE = 32000 * 3 + 45;
@jlamch
jlamch / WavAudio.ino
Created February 9, 2020 22:06
wav format audio example (from documentation)
#include "Arduino.h"
#include "OledDisplay.h"
#include "AudioClassV2.h"
AudioClass& Audio = AudioClass::getInstance();
const int AUDIO_SIZE = 32000 * 3 + 45;
int lastButtonAState;
int buttonAState;
int lastButtonBState;
#include "Arduino.h"
#include "HTS221Sensor.h"
#include "OledDisplay.h"
// humidity related
bool runHum = true;
DevI2C *i2c;
HTS221Sensor *sensorHnT;
float humidity = 0;
float temperature = 0;
#include "RGB_LED.h"
#include "Arduino.h"
RGB_LED rgbLed;
unsigned int rgbColour[3];
bool runLed = true;
void setup() {
  rgbLed.setColor(0, 0, 255);  
  attachInterrupt(USER_BUTTON_A, startLedFunc, CHANGE);
  attachInterrupt(USER_BUTTON_B, startLedFunc, FALLING);
#include "OledDisplay.h"
void setup() {
  //screen
  Screen.init();
}
void loop() {
   oledPlay();
}
void oledPlay()
{
#include "OledDisplay.h"
void setup() {
  //screen
  Screen.init();
}
void loop() {
  oledPlay();
}
void oledPlay()
#include "RGB_LED.h"
RGB_LED rgbLed;
unsigned int rgbColour[3];
void setup() {
rgbLed.setColor(0, 0, 255);
}
void loop() {
delay(1000);
rgbLed.turnOff();
delay(2000);