Skip to content

Commit d596652

Browse files
committed
Repo reset
0 parents  commit d596652

File tree

220 files changed

+692676
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+692676
-0
lines changed

.gitignore

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
.python-version
86+
87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
94+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95+
__pypackages__/
96+
97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
.dmypy.json
126+
dmypy.json
127+
128+
# Pyre type checker
129+
.pyre/
130+
131+
.DS_Store
132+
hs.dat
133+
buildCPU
134+
.vscode
135+
wifipass.h
136+
137+
PCB/GameTiger/GameTiger-backups/
138+
PCB/GameTiger/production/
139+
140+
*.000
141+
*.bak
142+
*.bck
143+
*.kicad_pcb-bak
144+
*.kicad_sch-bak
145+
*-backups
146+
*.kicad_prl
147+
*.sch-bak
148+
*~
149+
_autosave-*
150+
*.tmp
151+
*-save.pro
152+
*-save.kicad_pcb
153+
fp-info-cache
154+
155+
# Netlist files (exported from Eeschema)
156+
*.net
157+
158+
# Autorouter files (exported from Pcbnew)
159+
*.dsn
160+
*.ses
161+
162+
# Exported BOM files
163+
*.xml
164+
*.csv
165+
166+
*.uf2
167+
elf2uf2
168+
generated
169+
pico_extras
170+
pico-sdk
171+
pioasm
172+
173+
GameTiger.uf2
174+
GameTiger.bin
175+
GameTiger.dis
176+
GameTiger.elf
177+
GameTiger.elf.*
178+
GameTiger.hex
179+
180+
Makefile
181+
182+
CMakeFiles/*
183+
cmake_install.cmake
184+
CMakeCache.txt
185+
.gitpod.yml

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "(lldb) Attach",
9+
"type": "cppdbg",
10+
"request": "attach",
11+
"program": "enter program name, for example ${workspaceFolder}/a.out",
12+
"processId": "${command:pickProcess}",
13+
"MIMode": "lldb"
14+
}
15+
16+
]
17+
}

.vscode/settings.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"files.associations": {
3+
"cctype": "cpp",
4+
"clocale": "cpp",
5+
"cmath": "cpp",
6+
"cstddef": "cpp",
7+
"cstdint": "cpp",
8+
"cstdio": "cpp",
9+
"cstdlib": "cpp",
10+
"cstring": "cpp",
11+
"ctime": "cpp",
12+
"cwchar": "cpp",
13+
"cwctype": "cpp",
14+
"array": "cpp",
15+
"atomic": "cpp",
16+
"bit": "cpp",
17+
"*.tcc": "cpp",
18+
"chrono": "cpp",
19+
"compare": "cpp",
20+
"concepts": "cpp",
21+
"condition_variable": "cpp",
22+
"cstdarg": "cpp",
23+
"deque": "cpp",
24+
"list": "cpp",
25+
"map": "cpp",
26+
"unordered_map": "cpp",
27+
"vector": "cpp",
28+
"exception": "cpp",
29+
"algorithm": "cpp",
30+
"functional": "cpp",
31+
"iterator": "cpp",
32+
"memory": "cpp",
33+
"memory_resource": "cpp",
34+
"numeric": "cpp",
35+
"optional": "cpp",
36+
"random": "cpp",
37+
"ratio": "cpp",
38+
"string": "cpp",
39+
"string_view": "cpp",
40+
"system_error": "cpp",
41+
"tuple": "cpp",
42+
"type_traits": "cpp",
43+
"utility": "cpp",
44+
"fstream": "cpp",
45+
"initializer_list": "cpp",
46+
"iosfwd": "cpp",
47+
"iostream": "cpp",
48+
"istream": "cpp",
49+
"limits": "cpp",
50+
"mutex": "cpp",
51+
"new": "cpp",
52+
"ostream": "cpp",
53+
"ranges": "cpp",
54+
"stdexcept": "cpp",
55+
"stop_token": "cpp",
56+
"streambuf": "cpp",
57+
"thread": "cpp",
58+
"cinttypes": "cpp",
59+
"typeinfo": "cpp",
60+
"coroutine": "cpp",
61+
"sync.h": "c",
62+
"sx126x_regs.h": "c",
63+
"sx126x_hal.h": "c"
64+
},
65+
"C_Cpp.dimInactiveRegions": false
66+
}

.vscode/tasks.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"tasks": [
3+
{
4+
"type": "cppbuild",
5+
"label": "C/C++: arm-none-eabi-g++ build active file",
6+
"command": "/opt/homebrew/bin/arm-none-eabi-g++",
7+
"args": [
8+
"-fdiagnostics-color=always",
9+
"-g",
10+
"${file}",
11+
"-o",
12+
"${fileDirname}/${fileBasenameNoExtension}"
13+
],
14+
"options": {
15+
"cwd": "${fileDirname}"
16+
},
17+
"problemMatcher": [
18+
"$gcc"
19+
],
20+
"group": {
21+
"kind": "build",
22+
"isDefault": true
23+
},
24+
"detail": "Task generated by Debugger."
25+
}
26+
],
27+
"version": "2.0.0"
28+
}

CMakeFiles/cmake.check_cache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This file is generated by cmake for dependency checking of the CMakeCache.txt file

CMakeLists.txt

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
cmake_minimum_required(VERSION 3.12)
2+
set(CMAKE_C_STANDARD 11)
3+
set(CMAKE_CXX_STANDARD 17)
4+
5+
add_definitions ( -DFORMPU=1 )
6+
add_definitions ( -DRP2040=1 )
7+
8+
set(CMAKE_SYSTEM_NAME Linux)
9+
set(CMAKE_SYSTEM_PROCESSOR ARM)
10+
set(CMAKE_TRY_COMPILE_PLATFORM_VARIABLES CMAKE_PREFIX_PATH)
11+
12+
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
13+
include($ENV{PICO_EXTRAS_PATH}/external/pico_extras_import.cmake)
14+
15+
project(GameTiger VERSION 1.0.0)
16+
17+
set(PICO_BOARD gametiger_rp2040)
18+
19+
add_executable(${PROJECT_NAME}
20+
core/common.cpp
21+
core/LoRa/sx126x_hal.cpp
22+
core/LoRa/sx126x.cpp
23+
core/framebuffer.cpp
24+
core/display.cpp
25+
core/image.cpp
26+
core/battery.cpp
27+
core/keyboard.cpp
28+
core/tilemap.cpp
29+
core/level.cpp
30+
core/LoRa/lora.cpp
31+
screens/splashscreen.cpp
32+
screens/menuscreen.cpp
33+
screens/snakescreen.cpp
34+
screens/gameboyscreen.cpp
35+
screens/g2048screen.cpp
36+
screens/tetrisscreen.cpp
37+
screens/minescreen.cpp
38+
screens/ticscreen.cpp
39+
screens/aboutscreen.cpp
40+
screens/settingsscreen.cpp
41+
screens/pa2screen.cpp
42+
main.cpp
43+
)
44+
45+
pico_sdk_init()
46+
47+
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR} )
48+
target_link_libraries(${PROJECT_NAME}
49+
pico_stdlib
50+
pico_multicore
51+
hardware_spi
52+
hardware_i2c
53+
hardware_pwm
54+
hardware_adc
55+
hardware_dma
56+
hardware_flash
57+
hardware_sync
58+
hardware_pll
59+
)
60+
target_compile_definitions(${PROJECT_NAME} PRIVATE PICO_CLOCK_AJDUST_PERI_CLOCK_WITH_SYS_CLOCK=1)
61+
62+
pico_enable_stdio_usb(${PROJECT_NAME} 1)
63+
pico_enable_stdio_uart(${PROJECT_NAME} 0)
64+
65+
pico_add_extra_outputs(${PROJECT_NAME})

Case/GameTigerButtonBoot.stl

24.9 KB
Binary file not shown.

Case/GameTigerButtonPower.stl

7.02 KB
Binary file not shown.

Case/GameTigerButtonReset.stl

24.9 KB
Binary file not shown.

Case/GameTigerButtonSelect.stl

32.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)