Skip to content

Instantly share code, notes, and snippets.

View derfaq's full-sized avatar

Facundo Daguerre derfaq

View GitHub Profile
/*
frequencyAC_AVR
***************
*/
volatile uint32_t count = 0;
volatile uint8_t semiCicle = 0;
void initInputCaptureInterrupt(void){
@derfaq
derfaq / LineaYSeno.pde
Created April 7, 2018 00:05
Simple scketch para simular una pantalla en el RSD
int numLines = 6;
int[] partition = new int[numLines];
void setup() {
frameRate(60);
fullScreen();
for (int i = 0; i < numLines; i++) {
if(i == 0) {
partition[i] = i;
} else {
@derfaq
derfaq / analogWrite.ino
Last active September 25, 2018 02:57
analogWrite at half
int led = 10; // the PWM pin the LED is attached to
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
// set the brightness at half:
analogWrite(led, 127);
}
/**********************************************************************************************************************
Copyright (c) 2017 Roel Arits
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
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@derfaq
derfaq / NeoPixelsMPU6050_GravityAccelBounce.ino
Last active March 2, 2021 00:58
NeoPixels controlled by Accelerometer - Gravity Acceleration Bounce
/*
by Der Faq
modified 1 Mar 2021
This code is in the public domain
*/
//GND - GND
//VCC - Pin 3
//SDA - Pin A4