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
/* | |
frequencyAC_AVR | |
*************** | |
*/ | |
volatile uint32_t count = 0; | |
volatile uint8_t semiCicle = 0; | |
void initInputCaptureInterrupt(void){ |
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
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); | |
} |
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
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 { |
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
/********************************************************************************************************************** | |
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: |
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
/* | |
by Der Faq | |
modified 1 Mar 2021 | |
This code is in the public domain | |
*/ | |
//GND - GND | |
//VCC - Pin 3 | |
//SDA - Pin A4 |