Hi there
This ones probably for you TK
I have been working on that Live controller based on the 64E.
Faders and enc’s are working now but I would like to revisit the flashing led scenario as visited a long time ago.
I have made changes to the SR Service prepare and the App defines as follows.
USER_SR_Service_Prepare
;; call LEDrings handler
call MB64E_LEDRINGS_Handler
;; branch to the Rx/Tx LED handler
goto MIDI_RXTX_Handler
led _FLASH_Handler
;; increment counter
incf DOUT_ led _CTR, F
;; skip next block if led should not flash
IFCLR DOUT_ led _FLASH_ENABLE, 0, rgoto led _FLASH_Handler_Skip0
;; skip if DOUT counter < 128 (bit #7 not set), this leads to a
;; flashing frequency of 1 / (128 * update_cycle) = 1 / (128 * 1 mS) = ca. 8 Hz
IFCLR DOUT_ led _CTR, 7, rgoto led _FLASH_Handler_Skip0
;; get value of led at DOUT #0
movlw 0x00
call MIOS_DOUT_PinGet
;; result in MIOS_PARAMETER1, invert it
comf MIOS_PARAMETER1, F
;; write back result to DOUT #0
movlw 0x00
call MIOS_DOUT_PinSet
led _FLASH_Handler_Skip0
;; thats all
return
;; LEDring patterns
;; ==========================================================================
LEDRING_PATTERN_0 EQU 0
LEDRING_PATTERN_1 EQU 1
LEDRING_PATTERN_2 EQU 2
LEDRING_PATTERN_3 EQU 3
;; ==========================================================================
DOUT_led_ctr EQU 0x021
DOUT_led_FLASH_ENABLE EQU 0x022
;; free memory for user applications:
;; 0x010-0x37f
This did not seem to work and gave me a pile of errors. 12 to be exact.
Could you give me a few hints here please.
Thanks TK
Regards
Ian