hi,
someone ask me how to do a 16*16 matrix,
looking to the sm example v1, i’ve found two point where change have to be made, iwant to know if it’s the only point i need to make change:
first , in sm_simple.inc:
* at “SM_GetRow” :
;; increment column, wrap at 8 <— i want to wrap at 16, right?
incf SM_SELECTED_COLUMN, W, BANKED
andlw 0x07 <------------so, here i change 0x07 by 0x0f, right?
movwf SM_SELECTED_COLUMN, BANKED
* at “SM_ButtonHandler_Loop”
“”“IFSET INDF0, 7, rcall SM_NotifyToggle_Pin7 “”” –> here, go on the intruction to :
“”“IFSET INDF0, 15, rcall SM_NotifyToggle_Pin15"”"
* at “SM_ButtonHandler_Loop_Next”:
incf SM_BUTTON_COLUMN_CTR, F, BANKED
movlw 0x10-1 ; (16 columns)<------change here
*at :
“” SM_NotifyToggle_Pin0 —> go on with this instructuction to “SM_NotifyToggle_Pin15” “”
will this change be suffisant ?
thanks