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
// Control the LED brightness by sending value throw Serial monitor in Arduino Ide | |
// AnalogWrite() reference: https://www.arduino.cc/en/Reference/AnalogWrite | |
// Select the ride pin which support PWM mode for analogWrite() | |
// Pinout Arduino Nano: https://goo.gl/Dffq8f (the pins with oscillation symbol - PWM pin in legend) | |
int LED_PIN = 11; | |
// Next step - use Serial.parseInt() for control brightness | |
// ParseInt() reference: https://www.arduino.cc/en/Serial/ParseInt | |
// Example end of this file |
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 tlac = 8; | |
int led = 9; | |
int stav = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(led, OUTPUT); | |
pinMode(tlac, INPUT_PULLUP); | |
} |
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
// edit of this version RK4: https://www.fit.vutbr.cz/study/courses/IMS/public/priklady/rk4-test.c.html | |
#include <stdio.h> | |
void Dynamic(double t, double st[] /* *y */, unsigned N, /* out */ double in[] /* *yin */) | |
{ | |
// y’’’ + 7y’ - 5 = 0 | |
in[0] = st[1] * -7 + 5; | |
in[1] = st[0]; | |
in[2] = st[1]; |
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
\begin{figure}[h] | |
\begin{minipage}[b]{.5\textwidth} | |
\centering | |
\includegraphics[width=\textwidth]{images/pololu-3pi-robot-8-on-line.jpg} | |
\caption[Robot Pololu 3pi]{Robot Pololu 3pi\protect\footnotemark} | |
\label{fig:pololu-3pi-robot-8-on-line} | |
\end{minipage} | |
\hfill | |
\begin{minipage}[b]{.5\textwidth} | |
\centering |
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
# Original source: https://gist.github.com/xesscorp/8a2ed1b8923f04ae6366 | |
# Edit by Jarek Paral <[email protected]> | |
# | |
# KiCad outputs Gerber files with extensions that aren't recognized by the most commonly used | |
# PCB manufacturers. This Python script renames the files to what want manufactory Gatema for | |
# (company in Czech Republic which produce PCB - http://www.gatema.cz) Pool servis - prototype PCB | |
# (http://pcb.gatema.cz/kriteria-dat-pro-pool-servis/). | |
# Just execute this script in your KiCad project directory and the Gerber files will be renamed. | |
# |
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
\%\s\*[\s\S]*?Z\. |
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 "LearningKit.h" | |
void setup() { | |
Serial.begin(115200); | |
setupRgbLed(); | |
setupLeds(); | |
setupButtons(); | |
ledcSetup(0, 1000, 10); // ledcSetup(channel, freq, resolution) | |
// channel = 0 - 15 |
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 "LearningKit.h" | |
void setup() { | |
Serial.begin(115200); | |
setupRgbLed(); | |
setupLeds(); | |
setupButtons(); | |
ledcSetup(0, 1000, 10); // ledcSetup(channel, freq, resolution) | |
// channel = 0 - 15 |
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 "LearningKit.h" | |
int hour, min, sec; | |
bool alarm = false; | |
void setup() { | |
Serial.begin(115200); | |
setupLeds(); | |
setupRgbLed(); | |
setupButtons(); |
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 "LearningKit.h" | |
int hour, min, sec; | |
void setup() { | |
Serial.begin(115200); | |
setupLeds(); | |
setupRgbLed(); | |
hour = 17; |
OlderNewer