// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin PD7 as an output.
pinMode(PD7, OUTPUT);
pinMode(PG0, OUTPUT);
pinMode(PA3, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(PD7, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(PG0, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(PA3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(PD7, LOW); // turn the LED off by making the voltage LOW
digitalWrite(PG0, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(PA3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
}
Прошился и не мигает ни одной ногой. Светодиод с резистором исправны.
Какую инфу еще предоставить?
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x1e9702 (probably m128)
avrdude: NOTE: “flash” memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file “D:\Programming\Sketches\Blink\Blink.ino_atmega128_16000000L.hex”
avrdude: input file D:\Programming\Sketches\Blink\Blink.ino_atmega128_16000000L.hex auto detected as Intel Hex
avrdude: writing flash (1122 bytes):
avrdude: 1122 bytes of flash written
avrdude: verifying flash memory against D:\Programming\Sketches\Blink\Blink.ino_atmega128_16000000L.hex:
avrdude: load data flash data from input file D:\Programming\Sketches\Blink\Blink.ino_atmega128_16000000L.hex:
avrdude: input file D:\Programming\Sketches\Blink\Blink.ino_atmega128_16000000L.hex auto detected as Intel Hex
avrdude: input file D:\Programming\Sketches\Blink\Blink.ino_atmega128_16000000L.hex contains 1122 bytes
avrdude: reading on-chip flash data:
avrdude: verifying …
avrdude: 1122 bytes of flash verified
Я тоже до этого не работал со 128-й. На 328 не хватило одной ноги, использовал gpio nextion, решил переделать на большее количество ног, чтобы без шлейфов. И на тебе.
Сейчас спаял. Прошивается, “работает” как от внутреннего так и внешнего кварца, но реакции на скетч ноль. Купил на али понятное дело, но не думаю, что в этом проблема.