1
0
mirror of https://github.com/kalymos/PsNee.git synced 2026-01-30 05:33:54 +00:00

add led on attiny

This commit is contained in:
kalymos
2025-02-27 16:47:59 +01:00
parent 0b0377d43c
commit b852ea607e
14 changed files with 8 additions and 3 deletions

View File

@@ -343,6 +343,12 @@
#define TIMER_INTERRUPT_ENABLE TIMSK |= (1<<OCIE0A)
#define TIMER_INTERRUPT_DISABLE TIMSK &= ~(1<<OCIE0A)
// Handling and use of the LED pin
#define LED_RUN
#define PIN_LED_OUTPUT DDRB |= (1<<DDB3)
#define PIN_LED_ON PORTB |= (1<<PB3)
#define PIN_LED_OFF PORTB &= ~(1<<PB3)
#if !defined(SCPH_xxx1) && !defined(SCPH_xxx2) && !defined(SCPH_103)
#error "ATtiny85_45_25 Not compatible with BIOS patch, please choose a compatible SCPH. For example: SCPH_xxx1: SCPH_xxx2: SCPH_103"
#endif

View File

@@ -39,7 +39,7 @@
//------------------------------------------------------------------------------------------------
//#define PATCH_SWICHE // Enables hardware support for disabling BIOS patching.
//#define LED_RUN
#define LED_RUN // Turns on the LED when injections occur (D13 for ATmega, Pin 2 for ATtiny)
//------------------------------------------------------------------------------------------------
// pointer and variable section

View File

@@ -13,7 +13,6 @@ ATtinyX5.name=ATtiny25/45/85
ATtinyX5.upload.tool=arduino:avrdude
ATtinyX5.upload.low_fuses=0xff
ATtinyX5.program.tool=arduino:avrdude
ATtinyX5.program.unlock_bits=0xff
ATtinyX5.program.lock_bits=0xff

View File

@@ -1,5 +1,5 @@
name=PSNee
version=1.0.1
version=1.0.2
tools.avrdude.path={runtime.tools.avrdude.path}
tools.avrdude.cmd.path={path}/bin/avrdude