This file contains 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
option explicit | |
open "COM2:9600" AS #2 | |
controller nunchuk open | |
mode 1, 8 | |
dim current_turnout=0 | |
dim nunchuk_trigger | |
dim oldk$ = "" | |
dim d,n,m,x,y,p,t,bordercolor,jx,jy,ca,cb | |
dim a$, k$ |
This file contains 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 <Adafruit_GFX.h> | |
#include <Adafruit_NeoMatrix.h> | |
#include <Adafruit_NeoPixel.h> | |
#ifndef PSTR | |
#define PSTR // Make Arduino Due happy | |
#endif | |
// NeoMatrix pin | |
#define PIN 7 |
This file contains 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 <ESP8266WiFi.h> | |
#include <espnow.h> | |
// Structure example to receive data | |
// Must match the sender structure | |
typedef struct struct_message { | |
int a0; | |
int a1; | |
int a2; | |
int a3; |
This file contains 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 <ESP8266WiFi.h> | |
#include <espnow.h> | |
int a0 = 5; | |
int a1 = 4; | |
int a2 = 0; | |
int a3 = 2; | |
int a4 = 10; | |
int a5 = 13; |
This file contains 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 <ESP8266WiFi.h> | |
uint8_t Pwm1 = 5; //Nodemcu PWM pin | |
uint8_t Pwm2 = 4; //Nodemcu PWM pin | |
//Seven segment pins attachecd with nodemcu pins | |
int a0 = 15; //Gpio-15 of nodemcu esp8266 | |
int a1 = 13; //Gpio-13 of nodemcu esp8266 | |
int a2 = 12; //Gpio-12 of nodemcu esp8266 | |
int a3 = 14; //Gpio-14 of nodemcu esp8266 |
This file contains 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
uint8_t Pwm1 = 5; //Nodemcu PWM pin | |
uint8_t Pwm2 = 4; //Nodemcu PWM pin | |
//Seven segment pins attachecd with nodemcu pins | |
int a0 = 15; //Gpio-15 of nodemcu esp8266 | |
int a1 = 13; //Gpio-13 of nodemcu esp8266 | |
int a2 = 12; //Gpio-12 of nodemcu esp8266 | |
int a3 = 14; //Gpio-14 of nodemcu esp8266 | |
void setup() { |
This file contains 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
/** | |
* | |
* @author Henryk Krasuski | |
* @date 2022-03-07 | |
* | |
*/ | |
// =================================================== | |
// Animate interrupt |
This file contains 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
' comet | |
option explicit | |
dim float sssx(1000) | |
dim float sssy(1000) | |
const stars=200 | |
const sss.x=0 | |
const sss.y=1 | |
const sss.dx=2 | |
const sss.dy=3 | |
const sss.count=4 |
This file contains 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
' draws triangle with polygon | |
const dots=13 | |
dim xp(dots) | |
dim yp(dots) | |
radius=250 | |
start_angle=0 | |
dangle=0.005 |
This file contains 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
'================================== | |
'Virus sweeper | |
'By Henryk K 2021.10.19 | |
'================================== | |
option explicit | |
const grid.xmax = 51 | |
const grid.ymax = 37 | |
dim integer grid.squares | |
const gg.bomb = 0 ' is there a bomb i the square | |
const gg.checked = 1 ' has the square been checked |
NewerOlder