hallucinogen Posted November 6, 2003 Report Share Posted November 6, 2003 hi i want to print text on the lcd when a button number x is pressed can anyone give me an example for the code ??im building a custom remote for cubase 5 and i want to display track/parameter names on the lcdhallucinogen Quote Link to comment Share on other sites More sharing options...
hallucinogen Posted November 15, 2003 Author Report Share Posted November 15, 2003 i just need a example like:if button number 42 is pressed display "Bank1"i know how to print a string on the lcd but i haven´t found an example for a "if one button operation"please help ???hallucinogen Quote Link to comment Share on other sites More sharing options...
TK. Posted November 15, 2003 Report Share Posted November 15, 2003 An example is in the request queue, but it could take some weeks until I will find the time (programming effort: 5 minutes, documentation effort: at least 1 hour). When you go through the existing MIOS applications, you will find a lot of advanced examples (see MB64), but no application gives an explicit step by step instruction for the integration, mostly the routines are spreaded over different files. So, if you can't wait: try to understand the purpose of USER_DIN_NotifyToggle, search in the other examples how messages are print out, and then you will possibly be able to work it out by yourself.Best Regards, Thorsten.P.S.: another tip: see midibox_tc: ;; calculate pointer to the bank label (defined in tc_labels.inc): ;; TC_BANK_LABELS + 16 * TC_BANK TABLE_ADDR TC_BANK_LABELS ; this macro sets the base address movf TC_BANK, W ; get bank number mullw 16 ; * 16 -> result in PROD[LH] movf PRODL, W ; add offset (bank*16) to TABLPTR addwf TBLPTRL, F ; low-byte movf PRODH, W addwfc TBLPTRH, F ; high-byte (+carry bit on overrun) ;; print string by using the MIOS_LCD_PrintPreconfString function movlw 16 ; 16 characters call MIOS_LCD_PrintPreconfString Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.