the old fart
Senior Member
Hi Guys,
08m2
when I use the disconnect command, it's stopping serial output on pinC.4.
c.0 is an led
tof
08m2
when I use the disconnect command, it's stopping serial output on pinC.4.
c.0 is an led
Code:
;catalex mp3 player
;
#Picaxe 08M2
SetFreq m8 'Must be set to 8mhz or 16mhz for Serout command to work at 9600 baud
disconnect
Init:
pause 2500 'Required for proper operation after power-up
serout C.4,T9600_8,($7E,$FF,$06,$09,$00,$00,$02,$EF) 'Select TF socket on Catalex
'Required for proper operation after power-up
pause 500
HIGH c.0
pause 4000
LOW c.0
Main:
serout C.4,T9600_8,($7E,$FF,$06,$03,$00,$00,$01,$EF)
trun:
readadc C.1,w11; volume 0 to255
w11=w11/8 min 10 max 30
serout C.4,T9600_8,($7E,$FF,$06,$06,$00,$00,w11,$EF); volume
pause 50
goto trun
Last edited: