Kedves Robert!
A csatolt fáj-val küzdük 1 napja nem tudok rájönni mi a hiba. Ez a program a nano táblába simán felmegy és szépen működik.
Ennek a progamnak a sima blink válózatát poti nélkül be tudom tölteni simán az attiny13A chipbe a nano ISP_vel és működik
Ha potiva szeretmém csinálni, akkor az ellenőrzésnél kölönböző hihaüzeneteket ír ki attó függ hogy próbálom variálni.
De én ezt a programot szeretném betölteni attny13A-ba
Ha valaki tudna ebben segíteni, megköszöném!
Üdvözlettel,
Koska Lajos
int sensorPin = A1; // select the input pin for the potentiometer
int ledPin = 4; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
// declare the ledPin as an OUTPUT:
pinMode(ledPin, OUTPUT);
}
void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
// turn the ledPin on
digitalWrite(ledPin, HIGH);
// stop the program for <sensorValue> milliseconds:
delay(sensorValue * 2);
// turn the ledPin off:
digitalWrite(ledPin, LOW);
// stop the program for for <sensorValue> milliseconds:
delay(sensorValue * 2);
}
atttiny13A
- koskalajos
- Újonc
- Hozzászólások: 7
- Csatlakozott: 2011. december 17. szombat, 7:00
atttiny13A
Nincs meg a kellő jogosultságod a hozzászóláshoz csatolt állományok megtekintéséhez.
Re: atttiny13A
MicroCore-t használsz? Dokumentációt olvastad?
Le van írva, hogy kell hivatkozni egy analóg bemenetre.
https://github.com/MCUdude/MicroCore
int sensorPin = A1;
helyett
#define sensorPin A1
vagy
analog_pin_t sensorPin = A1;
Le van írva, hogy kell hivatkozni egy analóg bemenetre.
https://github.com/MCUdude/MicroCore
int sensorPin = A1;
helyett
#define sensorPin A1
vagy
analog_pin_t sensorPin = A1;
- koskalajos
- Újonc
- Hozzászólások: 7
- Csatlakozott: 2011. december 17. szombat, 7:00
Re: atttiny13A
Köszönöm, látom, látom a honlapon a a megjelenést így már jó!!!
Tegnap annyira belemerültem hogy eszembe nem volt utána olvasni.
Üdvözlettel,
Koska Lajos
Tegnap annyira belemerültem hogy eszembe nem volt utána olvasni.
Üdvözlettel,
Koska Lajos