@@ -556,32 +556,32 @@ def _set_memory_location(self, x_start, y_start, x_end, y_end):
556556
557557 # set active window start X/Y
558558 buf [0 ] = x_start & 0xFF
559- self .set_params (_AWUL_X0 , mv )
559+ self ._data_bus . tx_param (_AWUL_X0 , mv , False )
560560 buf [0 ] = (x_start >> 8 ) & 0xFF
561- self .set_params (_AWUL_X1 , mv )
561+ self ._data_bus . tx_param (_AWUL_X1 , mv , False )
562562 buf [0 ] = y_start & 0xFF
563- self .set_params (_AWUL_Y0 , mv )
563+ self ._data_bus . tx_param (_AWUL_Y0 , mv , False )
564564 buf [0 ] = (y_start >> 8 ) & 0xFF
565- self .set_params (_AWUL_Y1 , mv )
565+ self ._data_bus . tx_param (_AWUL_Y1 , mv , False )
566566
567567 # set active window width and height
568568 buf [0 ] = (x_end - x_start ) & 0xFF
569- self .set_params (_AW_WTH0 , mv )
569+ self ._data_bus . tx_param (_AW_WTH0 , mv , False )
570570 buf [0 ] = ((x_end - x_start ) >> 8 ) & 0xFF
571- self .set_params (_AW_WTH1 , mv )
571+ self ._data_bus . tx_param (_AW_WTH1 , mv , False )
572572 buf [0 ] = (y_end - y_start ) & 0xFF
573- self .set_params (_AW_HT0 , mv )
573+ self ._data_bus . tx_param (_AW_HT0 , mv , False )
574574 buf [0 ] = ((y_end - y_start ) >> 8 ) & 0xFF
575- self .set_params (_AW_HT1 , mv )
575+ self ._data_bus . tx_param (_AW_HT1 , mv , False )
576576
577577 # set cursor
578578 buf [0 ] = x_start & 0xff
579- self .set_params (_CURH0 , mv )
579+ self ._data_bus . tx_param (_CURH0 , mv , False )
580580 buf [0 ] = (x_start >> 8 ) & 0xFF
581- self .set_params (_CURH1 , mv )
581+ self ._data_bus . tx_param (_CURH1 , mv , False )
582582 buf [0 ] = y_start & 0xFF
583- self .set_params (_CURV0 , mv )
583+ self ._data_bus . tx_param (_CURV0 , mv , False )
584584 buf [0 ] = (y_start >> 8 ) & 0xFF
585- self .set_params (_CURV1 , mv )
585+ self ._data_bus . tx_param (_CURV1 , mv , True )
586586
587587 return _MRWDP
0 commit comments