Non ricordo il segno "#" a cosa serve per esempio prima di un numero o prima dell'istruzione IF.
- Code: Select all
Open "COM1:" For Binary As #1
' ^^^^ change from COM1-COM8
Print #1 , "Xmega revision:" ; Mcu_revid ' make sure it is 7 or higher !!! lower revs have many flaws
Open "twic" For Binary As #4 ' Use TWI on Port C
'you can also use TWIC, TWID, TWIE of TWIF
Config Twi = 100000 ' 100KHz
#if Usechannel = 1
I2cinit #4
#else
I2cinit
#endif
Grazie!