From 7beb83428b4a83927b44922eab5f928bb65573d3 Mon Sep 17 00:00:00 2001 From: Arthur Bonnaudet Date: Wed, 13 Sep 2023 17:41:47 +0200 Subject: [PATCH] dkljdhk --- lib_nbgl/serialization/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/lib_nbgl/serialization/README.md b/lib_nbgl/serialization/README.md index 990c65f01..80fd519e0 100644 --- a/lib_nbgl/serialization/README.md +++ b/lib_nbgl/serialization/README.md @@ -16,6 +16,7 @@ Serialize a Nbgl event into a json-like dict: >>> from nbgl_lib import serialize_nbgl_json >>> serialize_nbgl_json(nbgl_event) {'event': 'NBGL_DRAW_OBJ', 'obj': {'type': 'BUTTON', 'content': {'area': {'width': 255, 'height': 50, 'x0': 500, 'y0': 1000, 'background_color': 'DARK_GRAY', 'bpp': 'BPP_1'}, 'inner_color': 'WHITE', 'border_color': 'DARK_GRAY', 'foreground_color': 'LIGHT_GRAY', 'radius': 'RADIUS_24_PIXELS', 'font_id': 'BAGL_FONT_HM_ALPHA_MONO_MEDIUM_32px', 'localized': True, 'text': 'Test button'}}} +blabla ``` Deserialize json-like dict into an Nbgl event: