Skip to content

Commit

Permalink
dkljdhk
Browse files Browse the repository at this point in the history
  • Loading branch information
abonnaudet-ledger committed Sep 13, 2023
1 parent 81485be commit 7beb834
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib_nbgl/serialization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7beb834

Please sign in to comment.