|
From: Aleksander A. <af...@gm...> - 2018-05-08 17:42:21
|
Hello everyone, Proposed patch adds decoder of ST7735 TFT controller protocol. Currently this decoder only allows to distinguish commands and data, and also shows command names and their short descriptions. Here is a screenshot: https://afiskon.ru/s/43/ea50416b0f_temp.png In this context I would like also to answer the question asked in IRC: 11:33 < uwe_> afiskon: sigrok-cli cannot throw exceptions, it's C code. do you mean a Python exception or an error code or such? if yes, under which circumstances? sounds like a bug The circumstances are: $ sigrok-cli -i ~/temp/st7735-minimal.sr \ -P 'st7735:cs=CS:clk=SCLK:mosi=MOSI:dc=DC' \ -A 'st7735=description' ... st7735-1: CASET: Column address set st7735-1: RASET: Row address set st7735-1: RAMWR: Memory write Note that the description of the last command RAMWR was successfully sent. This is because unlike PulseView sigrok-cli makes 'self.wait()' to throw an exception instead of hanging. The decoder interprets the exception as an end of stream and decodes buffered data. -- Best regards, Aleksander Alekseev |