Ta program pa zdaj še barve meša, ni pa mi jasno ali to spreminja v odvisnosti od položaja joytika in tipke

. Nam bo pa Kroko nocoj razložil.
Trudim se da bi sledil predavanju, a mi uspeva le toliko , da približno vem od kod kaj pride. Nisem pa v stanju da bi si izmislil kaj svojega. Poskušam ta program prenašat še na Arduino nano z negovim Pins.h , kjer pa imam priključen še LCD in rotacijki enkoderček s tipko in najbrž ne paše skupaj.
Vse skupaj gre bolj slabo, ker sproti pozabljam (leta so že čez 60- ne gre več tako nalahko v glavo), kaj vse rabim pa sintakso itd itd.
Moral bi si pripraviti en super povzetek (plonk ceglc

) s tabelami in opisi tega, kar smo vzeli in še bomo, da bi ga imel stalno pri roki .( Ali tak priročnik -v slovenščini že obstaja?) Pa še angleščina mi ni tako samoumevna, da imam spet težje delo. Navsezadnje pa še delam v službi in se mi včasih ne da nič.... No ja , mogoče bom pa vseeno še sledil Krokotu pri tem tečaju ( če ne bo še on obupal nad nami)
- Koda: Izberi vse
#ifndef __PINS_H__
#define __PINS_H__
#include <Arduino.h>
#include <LiquidCrystal.h>
#include <Wire.h>
static const int PIN_POT = A0;
static const uint8_t PIN_LED_R = 2;
static const uint8_t PIN_LED_G = 4;
static const uint8_t PIN_LED_B = 3;
static const uint8_t OutFet = 13;
static const uint8_t OutBuz = 12;
static const uint8_t ENC_BTN = A1;
static const int EncA = A3;
static const int EncB = A2;
static const int PIN_LCD_BACKLIGHT = 11;
static const int PIN_LCD_DB7 = 10;
static const int PIN_LCD_DB6 = 9;
static const int PIN_LCD_DB5 = 8;
static const int PIN_LCD_DB4 = 7;
static const int PIN_LCD_E = 6;
static const int PIN_LCD_RS = 5;
LiquidCrystal LCD(PIN_LCD_RS, PIN_LCD_E, PIN_LCD_DB4, PIN_LCD_DB5, PIN_LCD_DB6, PIN_LCD_DB7);
#endif