Skip to content

Instantly share code, notes, and snippets.

View JarekParal's full-sized avatar

Jaroslav Páral JarekParal

View GitHub Profile
@JarekParal
JarekParal / logic_hra_dinosaurus.cpp
Last active July 19, 2021 20:38
Napodobenina hry T-Rex Dinosaur z webového prohlížeče Google Chrome na výukové desce Logic.
// Tato hra je napadobenina hry [T-Rex Dinosaur](https://chromedino.com/) z webového prohlížeče Google Chrome.
// Hra se zobrazí při výpadku internetového připojení.
#include "Logic.hpp"
#include <iostream>
void nakresliZem() {
display.nakresliCaru(0, 9, 9, 9, Zluta);
}
@JarekParal
JarekParal / README.md
Created December 9, 2019 15:57
Pyinstaller - update version during CI build / automatic update of version file
python CI/updateVersion.py %NEW_VERSION%
pyinstaller testApp.py --version-file "CI/version.py"
@JarekParal
JarekParal / doxygen-with-travis-ci.md
Created April 5, 2019 09:30 — forked from bmegli/doxygen-with-travis-ci.md
Doxygen with Travis CI to gh-pages

Setup github project so that after any change to master branch doxygen documentation is generated and pushed to gh-pages by Travis CI

  1. Add clean gh-pages branch to your repository
git checkout --orphan gh-pages
git rm -rf .
echo "my gh-pages branch" > README.md
git add .
git commit -a -m "clean gh-pages branch"
git push origin gh-pages
@JarekParal
JarekParal / ESPExceptionDecode.bat
Created April 3, 2019 10:27 — forked from stritti/ESPExceptionDecode.bat
Decode the Exception of ESP within PlatformIO
%homedrive%%homepath%/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-addr2line.exe -fp -e ./.pioenvs/nodemcuv2/firmware.elf
Building file: ../mbed-os/features/lwipstack/lwip/src/core/lwip_stats.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -ffunction-sections -fdata-sections -fno-builtin -funsigned-char -fno-delete-null-pointer-checks -fomit-frame-pointer -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers  -g3 -DTARGET_PSA -DDEVICE_EMAC=1 -D__MBED__=1 -DDEVICE_I2CSLAVE=1 -DTARGET_LIKE_MBED -DTARGET_Freescale -DDEVICE_PORTINOUT=1 -DTARGET_RTOS_M4_M7 -DDEVICE_RTC=1 -DCOMPONENT_PSA_SRV_EMUL=1 -D__CMSIS_RTOS -DFSL_RTOS_MBED -DCPU_MK66FN2M0VMD18 -DTOOLCHAIN_GCC -DCOMPONENT_SD=1 -DTARGET_CORTEX_M -DTARGET_KSDK2_MCUS -DTARGET_LIKE_CORTEX_M4 -DDEVICE_ANALOGOUT=1 -DTARGET_M4 -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_LPTICKER=1 -DDEVICE_SERIAL=1 -DCOMPONENT_FLASHIAP=1 -DDEVICE_INTERRUPTIN=1 -DTARGET_K66F -DTARGET_CORTEX -DDEVICE_I2C=1 -DDEVICE_PORTOUT=1 -D__CORTEX_M4 -DDEVICE_STDIO_MESSAGES=1 -D__FPU_PRESENT=1 -DTARGET_FF_ARDUINO -DDE
20:29:56 **** Incremental Build of configuration Debug for project frdm_k66_mbed-os-example-blinky ****
make -j4 all 
../makefile.targets:11: warning: overriding recipe for target 'frdm_k66_mbed-os-example-blinky.elf'
makefile:224: warning: ignoring old recipe for target 'frdm_k66_mbed-os-example-blinky.elf'
Building file: ../mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/analogin_api.c
Building file: ../mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/analogout_api.c
Building file: ../mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/api/dma_api.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -ffunction-sections -fdata-sections -fno-builtin -funsigned-char -fno-delete-null-pointer-checks -fomit-frame-pointer -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers  -g3 -DMBED_BUILD_TIMESTAMP=1553259003.93 -DTARGET_PSA -DDEVICE_EMAC=1 -D__MBED__=1 -DDEVICE_I2CSLAVE=1 -DTARGET
@JarekParal
JarekParal / clock-1.cpp
Created July 12, 2017 07:25
Clock - example 1
#include "LearningKit.h"
int hour, min, sec;
void setup() {
Serial.begin(115200);
setupLeds();
setupRgbLed();
hour = 17;
@JarekParal
JarekParal / clock-2.cpp
Created July 12, 2017 07:25
Clock - example 2 - with alarm
#include "LearningKit.h"
int hour, min, sec;
bool alarm = false;
void setup() {
Serial.begin(115200);
setupLeds();
setupRgbLed();
setupButtons();
@JarekParal
JarekParal / analogWriteESP32-2.cpp
Created July 11, 2017 10:23
analogWrite() on ESP32 - example 2
#include "LearningKit.h"
void setup() {
Serial.begin(115200);
setupRgbLed();
setupLeds();
setupButtons();
ledcSetup(0, 1000, 10); // ledcSetup(channel, freq, resolution)
// channel = 0 - 15
@JarekParal
JarekParal / analogWriteESP32-1.cpp
Last active July 11, 2017 10:25
analogWrite() on ESP32 - example 1
#include "LearningKit.h"
void setup() {
Serial.begin(115200);
setupRgbLed();
setupLeds();
setupButtons();
ledcSetup(0, 1000, 10); // ledcSetup(channel, freq, resolution)
// channel = 0 - 15