diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-05-12 18:23:59 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-05-12 18:23:59 -0700 |
| commit | cde665172136b9be7720e22dbdc48c2bd224c483 (patch) | |
| tree | 918cb75a7ea1dd6f144de0c16fe577ea31155b97 /shared-module/vectorio/Polygon.h | |
| parent | c816cfed58a6f875f91a3bb8629dd81acf076882 (diff) | |
| parent | 75f9969860870a4ae636c74ae210275413b13c2f (diff) | |
Merge remote-tracking branch 'adafruit/master' into improve_verification
Diffstat (limited to 'shared-module/vectorio/Polygon.h')
| -rw-r--r-- | shared-module/vectorio/Polygon.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shared-module/vectorio/Polygon.h b/shared-module/vectorio/Polygon.h new file mode 100644 index 000000000..1aef854a7 --- /dev/null +++ b/shared-module/vectorio/Polygon.h @@ -0,0 +1,16 @@ +#ifndef MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_POLYGON_H +#define MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_POLYGON_H + +#include <stdint.h> + +#include "py/obj.h" +#include "shared-module/vectorio/__init__.h" + +typedef struct { + mp_obj_base_t base; + // A micropython List[ x, y, ... ] + mp_obj_t points_list; + vectorio_event_t on_dirty; +} vectorio_polygon_t; + +#endif // MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_POLYGON_H |
