nuxx.net
Making, baking, and (un-)breaking things in Southeast Michigan.

9600,N-8-1

Whenever I reset the PIC on my EasyPIC4 (photo gallery retired) my iPod toggles between pause and play.

I now possess the world’s largest iPod remote.


Yes, I’m aware of how much this sucks:

program iPodRemoteTest

sub procedure iprMode0x02
   Soft_Uart_Write(0xFF) 'Mode 0x02 - Simple Remote
   Soft_Uart_Write(0x55)
   Soft_Uart_Write(0x03) 'Length
   Soft_Uart_Write(0x00) 'Mode
   Soft_Uart_Write(0x01) 'Command (Change Mode...)
   Soft_Uart_Write(0x02) 'Parameter (...to Mode 2)
   Soft_Uart_Write(0xFA)
end sub

sub procedure iprPlayButton
   Soft_Uart_Write(0xFF) 'Next Track
   Soft_Uart_Write(0x55)
   Soft_Uart_Write(0x03)
   Soft_Uart_Write(0x02)
   Soft_Uart_Write(0x00)
   Soft_Uart_Write(0x01)
   Soft_Uart_Write(0xFA)
end sub

sub procedure iprButtonRelease
   Soft_Uart_Write(0xFF) 'Button Release
   Soft_Uart_Write(0x55)
   Soft_Uart_Write(0x03)
   Soft_Uart_Write(0x02)
   Soft_Uart_Write(0x00)
   Soft_Uart_Write(0x00)
   Soft_Uart_Write(0xFB)
end sub

main:
   Soft_Uart_Init(PORTB, 2, 1, 9600, 0)
   iprMode0x02
   iprPlayButton
   iprButtonRelease
end.

I might write some subroutines for this, (done) then get it doing lots more… Hopefully within a day or so it’ll do things based on what the HML says to it’s USART.

:D

Leave a reply