Example of basic_scenes split across files.

This commit is contained in:
Derek Jamison
2023-07-15 22:04:30 -05:00
parent 4beca0ce95
commit e9022c7eb0
16 changed files with 342 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
# Scenes Demo Application Tutorial
This is an exampe similar to [Basic_Scenes](https://github.com/jamisonderek/flipper-zero-tutorials/tree/main/ui/basic_scenes) but with the files broken out into separate .c and .h files.
- The ``static`` keyword is used on functions that do not need to be visible beyond their own .c file.
- ``#pragma once`` is used to prevent the header file from being imported multiple times.
- We don't use the typical ``typedef struct App App`` pattern in ``basic_scenes_split.h`` because the various scenes access properties of the ``App`` object.