author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
510,640
12.01.2021 15:22:57
0
718c76321d8f32dd1520bfe3730376d046dac4d8
Allow pen comparisons
[ { "change_type": "MODIFY", "old_path": "32blit/graphics/surface.hpp", "new_path": "32blit/graphics/surface.hpp", "diff": "@@ -74,6 +74,7 @@ namespace blit {\nuint8_t b = 0;\nuint8_t a = 0;\n+ inline bool operator ==(const Pen rhs) {return r == rhs.r && g == rhs.g && b == rhs.b && a == rhs.a;};\nPen(...
C
MIT License
pimoroni/32blit-beta
Allow pen comparisons
510,640
12.01.2021 15:23:19
0
1109bc9d3c135f321f51a8988e16a7b4fad5b08a
Rect.size helper
[ { "change_type": "MODIFY", "old_path": "32blit/types/rect.hpp", "new_path": "32blit/types/rect.hpp", "diff": "@@ -19,6 +19,10 @@ namespace blit {\ninline Rect& operator*= (const float a) { x = static_cast<int32_t>(x * a); y = static_cast<int32_t>(y * a); w = static_cast<int32_t>(w * a); h = static_c...
C
MIT License
pimoroni/32blit-beta
Rect.size helper
510,640
12.01.2021 15:23:49
0
7ed0d1017802291886b3d838e9bb99e43dcc9f61
Allow sizes to be divided
[ { "change_type": "MODIFY", "old_path": "32blit/types/size.hpp", "new_path": "32blit/types/size.hpp", "diff": "@@ -14,6 +14,7 @@ namespace blit {\nconstexpr Size(int32_t w, int32_t h) : w(w), h(h) {}\ninline Size& operator*= (const float a) { w = static_cast<int32_t>(w * a); h = static_cast<int32_t>(...
C
MIT License
pimoroni/32blit-beta
Allow sizes to be divided
510,640
12.01.2021 17:10:39
0
ee9f69d2b48b35ae772697659e687baf1dfab369
Tidy up size operators
[ { "change_type": "MODIFY", "old_path": "32blit/types/size.hpp", "new_path": "32blit/types/size.hpp", "diff": "@@ -14,7 +14,9 @@ namespace blit {\nconstexpr Size(int32_t w, int32_t h) : w(w), h(h) {}\ninline Size& operator*= (const float a) { w = static_cast<int32_t>(w * a); h = static_cast<int32_t>(...
C
MIT License
pimoroni/32blit-beta
Tidy up size operators
510,640
14.01.2021 19:22:42
0
cc2202d7af1c96f744962dc2d98c9bd3e7a18285
Add Size == operator
[ { "change_type": "MODIFY", "old_path": "32blit/types/size.hpp", "new_path": "32blit/types/size.hpp", "diff": "@@ -32,5 +32,6 @@ namespace blit {\ninline Size operator/ (Size lhs, const int a) { lhs /= a; return lhs; }\ninline Size operator* (Size lhs, const float a) { lhs *= a; return lhs; }\ninline...
C
MIT License
pimoroni/32blit-beta
Add Size == operator
510,640
14.01.2021 19:23:55
0
5238f1ccd440a86a651f9ae6fd1481df91faaa09
Support for spritesheets in screenshot viewer
[ { "change_type": "MODIFY", "old_path": "launcher/launcher.cpp", "new_path": "launcher/launcher.cpp", "diff": "@@ -196,10 +196,10 @@ void load_file_list(std::string directory) {\ncontinue;\n}\n- if(ext == \"bmp\") {\n+ if(ext == \"bmp\" || ext == \"spritepk\" || ext == \"spriterw\") {\nGameInfo game;...
C
MIT License
pimoroni/32blit-beta
Support for spritesheets in screenshot viewer
510,640
14.01.2021 22:57:12
0
c032d7b0542d3ac22c6f9d29354111bc2419bfc3
Support for saving to .ssrw
[ { "change_type": "MODIFY", "old_path": "32blit/graphics/surface.cpp", "new_path": "32blit/graphics/surface.cpp", "diff": "@@ -122,7 +122,7 @@ namespace blit {\nauto ext = std::string_view(filename).substr(dot + 1);\nbool is_bmp = ext == \"bmp\";\n- bool is_spriterw = ext == \"spriterw\";\n+ bool is_...
C
MIT License
pimoroni/32blit-beta
Support for saving to .ssrw
510,640
14.01.2021 22:57:36
0
4e9bf271ac4ec20f81ad5219bba18cdfffc88496
Add Size != operator
[ { "change_type": "MODIFY", "old_path": "32blit/types/size.hpp", "new_path": "32blit/types/size.hpp", "diff": "@@ -33,5 +33,6 @@ namespace blit {\ninline Size operator* (Size lhs, const float a) { lhs *= a; return lhs; }\ninline Size operator* (Size lhs, const int a) { lhs *= a; return lhs; }\ninline...
C
MIT License
pimoroni/32blit-beta
Add Size != operator
510,640
14.01.2021 22:58:35
0
0881d7d893e8507ee161f7dc6c761d58008b7c3c
Special case for editing viewable sprites
[ { "change_type": "MODIFY", "old_path": "launcher/launcher.cpp", "new_path": "launcher/launcher.cpp", "diff": "@@ -196,12 +196,16 @@ void load_file_list(std::string directory) {\ncontinue;\n}\n- if(ext == \"bmp\" || ext == \"spritepk\" || ext == \"spriterw\") {\n+ // spritepk and spriterw are old, tr...
C
MIT License
pimoroni/32blit-beta
Special case for editing viewable sprites
510,647
15.01.2021 16:19:07
0
b34f91cc258634bb975be32b6e8f974b903ebc29
Added basic highscore tracking for scrolly-tile
[ { "change_type": "MODIFY", "old_path": "examples/scrolly-tile/scrolly-tile.cpp", "new_path": "examples/scrolly-tile/scrolly-tile.cpp", "diff": "@@ -67,6 +67,11 @@ uint32_t current_row = 0;\nTimer state_update;\nPoint tile_offset(0, 0);\n+struct SaveData {\n+ uint32_t highscore;\n+} saveData;\n+\n+ui...
C
MIT License
pimoroni/32blit-beta
Added basic highscore tracking for scrolly-tile
510,640
15.01.2021 16:43:54
0
07dfbb23fd42d670c0ad65e5e21efeaa46803ec2
Blit image extension is now .blim
[ { "change_type": "MODIFY", "old_path": "32blit/graphics/surface.cpp", "new_path": "32blit/graphics/surface.cpp", "diff": "@@ -122,7 +122,7 @@ namespace blit {\nauto ext = std::string_view(filename).substr(dot + 1);\nbool is_bmp = ext == \"bmp\";\n- bool is_spriterw = ext == \"spriterw\" || ext == \"...
C
MIT License
pimoroni/32blit-beta
Blit image extension is now .blim
510,647
16.01.2021 10:38:47
0
07d25eeac80cc60a8045588475a8d5d72d6d8e6b
Rewrote highscore code as comments on pull request suggested.
[ { "change_type": "MODIFY", "old_path": "examples/scrolly-tile/metadata.yml", "new_path": "examples/scrolly-tile/metadata.yml", "diff": "@@ -5,6 +5,6 @@ splash:\nfile: rainbow-ascent.png\nicon:\nfile: rainbow-ascent-icon.png\n-version: v1.0.0\n+version: v1.1.0\nurl: https://github.com/pimoroni/32blit...
C
MIT License
pimoroni/32blit-beta
Rewrote highscore code as comments on pull request suggested.
510,642
17.01.2021 12:58:20
0
dc7df4c53ae93a7a2b501d499f7581984d27a8df
Update Windows-VisualStudio.md Added the location of the Embedded and IoT development tools option as I couldn't find it and spent ages looking! Hopefully this will save someone else some time in the future.
[ { "change_type": "MODIFY", "old_path": "docs/Windows-VisualStudio.md", "new_path": "docs/Windows-VisualStudio.md", "diff": "@@ -73,7 +73,7 @@ To find the built files use `Project` > `CMake Cache` > `Open in Explorer`.\n### Building for 32Blit\n-1. Make sure the \"Embedded and IoT development tools\"...
C
MIT License
pimoroni/32blit-beta
Update Windows-VisualStudio.md Added the location of the Embedded and IoT development tools option as I couldn't find it and spent ages looking! Hopefully this will save someone else some time in the future.
510,656
18.01.2021 11:49:19
-3,600
d8069d08061f9684f46f58af4958407d9177b097
additional step for macOS Two elements needed to be installed. I added the brew commands in the md file.
[ { "change_type": "MODIFY", "old_path": "docs/macOS.md", "new_path": "docs/macOS.md", "diff": "@@ -32,12 +32,21 @@ Installing `python3` can be done with homebrew with a simple `brew install pytho\n### Installing pip3 dependecies\n+before installing 32blit tools, some binary requirements are needed:\n...
C
MIT License
pimoroni/32blit-beta
additional step for macOS Two elements needed to be installed. I added the brew commands in the md file.
510,640
18.01.2021 11:56:53
0
c993a0502be14f448968f2b439198770a54b7cfb
Fix code embed
[ { "change_type": "MODIFY", "old_path": "docs/macOS.md", "new_path": "docs/macOS.md", "diff": "@@ -34,7 +34,8 @@ Installing `python3` can be done with homebrew with a simple `brew install pytho\nbefore installing 32blit tools, some binary requirements are needed:\n-```brew install libjpeg\n+```\n+bre...
C
MIT License
pimoroni/32blit-beta
Fix code embed
510,640
24.12.2020 18:44:47
0
4f68892c46d7925c20ed8b735d3daf5289f2f76d
Piano roll example
[ { "change_type": "MODIFY", "old_path": "examples/CMakeLists.txt", "new_path": "examples/CMakeLists.txt", "diff": "@@ -35,3 +35,4 @@ add_subdirectory(tunnel)\nadd_subdirectory(tween-demo)\nadd_subdirectory(tween-test)\nadd_subdirectory(voxel)\n+add_subdirectory(piano)\n" }, { "change_type": "...
C
MIT License
pimoroni/32blit-beta
Piano roll example
510,640
18.01.2021 16:53:56
0
ec96bdc7b551192c4d2d309be74d0a2535250451
Re-sort example CMakeLists
[ { "change_type": "MODIFY", "old_path": "examples/CMakeLists.txt", "new_path": "examples/CMakeLists.txt", "diff": "@@ -17,6 +17,7 @@ add_subdirectory(multiplayer)\nadd_subdirectory(palette-cycle)\nadd_subdirectory(palette-swap)\nadd_subdirectory(particle)\n+add_subdirectory(piano)\nadd_subdirectory(p...
C
MIT License
pimoroni/32blit-beta
Re-sort example CMakeLists
510,647
21.01.2021 11:50:58
0
a9378e2f35d63ce7584a396463b899cd6177ba9a
Added waveform demo files.
[ { "change_type": "MODIFY", "old_path": "examples/CMakeLists.txt", "new_path": "examples/CMakeLists.txt", "diff": "@@ -36,3 +36,4 @@ add_subdirectory(tunnel)\nadd_subdirectory(tween-demo)\nadd_subdirectory(tween-test)\nadd_subdirectory(voxel)\n+add_subdirectory(waveform-demo)\n" }, { "change_...
C
MIT License
pimoroni/32blit-beta
Added waveform demo files.
510,647
21.01.2021 12:05:16
0
66b778dd3e67487791ec63a302e52712cd09c96d
Added icon and image files.
[ { "change_type": "MODIFY", "old_path": "examples/waveform-demo/metadata.yml", "new_path": "examples/waveform-demo/metadata.yml", "diff": "@@ -2,9 +2,9 @@ title: Waveform Demo\ndescription: A demo of the 32blit's waveform generator.\nauthor: ThePythonator\nsplash:\n- file: assets/no-image.png\n+ file...
C
MIT License
pimoroni/32blit-beta
Added icon and image files.
510,647
21.01.2021 12:16:30
0
c0d5e00bab3d8359a24ebfd1e8e2541ab6fd29c3
Fixed path to image an icon.
[ { "change_type": "MODIFY", "old_path": "examples/waveform-demo/metadata.yml", "new_path": "examples/waveform-demo/metadata.yml", "diff": "@@ -2,9 +2,9 @@ title: Waveform Demo\ndescription: A demo of the 32blit's waveform generator.\nauthor: ThePythonator\nsplash:\n- file: assets/image.png\n+ file: w...
C
MIT License
pimoroni/32blit-beta
Fixed path to image an icon.
510,647
21.01.2021 13:34:52
0
3b0e6c5d5176db7dce8e064f75964fb66be41cac
Changed RIGHT sfx to no longer be similar to UP sfx. Tweaked LEFT sfx length.
[ { "change_type": "MODIFY", "old_path": "examples/waveform-demo/metadata.yml", "new_path": "examples/waveform-demo/metadata.yml", "diff": "@@ -5,6 +5,6 @@ splash:\nfile: waveform-demo.png\nicon:\nfile: waveform-demo-icon.png\n-version: v0.2.2\n+version: v0.3.0\nurl: https://github.com/pimoroni/32blit...
C
MIT License
pimoroni/32blit-beta
Changed RIGHT sfx to no longer be similar to UP sfx. Tweaked LEFT sfx length.
510,665
22.01.2021 16:48:35
0
47e5b56a14c049d9918e27724e35bf1e5a791d6f
Added center() function to blit::Rect
[ { "change_type": "MODIFY", "old_path": "32blit/types/rect.hpp", "new_path": "32blit/types/rect.hpp", "diff": "@@ -118,8 +118,13 @@ namespace blit {\nreturn Point(x + w, y + h);\n}\n+ Point center() const {\n+ return Point(x + w/2, y + h/2);\n+ }\n+\n};\ninline Rect operator* (Rect lhs, const float a...
C
MIT License
pimoroni/32blit-beta
Added center() function to blit::Rect
510,640
27.01.2021 16:43:33
0
7e2c7fe0d790cb0f31c8c2e915bcb96744ef9aac
Support flash progress at 160x120 res
[ { "change_type": "MODIFY", "old_path": "firmware/firmware.hpp", "new_path": "firmware/firmware.hpp", "diff": "@@ -38,11 +38,11 @@ struct {\nvoid draw() {\nif(!this->message.empty()) {\nscreen.pen = Pen(0, 0, 0, 150);\n- screen.rectangle(Rect(0, 215, 320, 25));\n+ screen.rectangle(Rect(0, screen.boun...
C
MIT License
pimoroni/32blit-beta
Support flash progress at 160x120 res
510,654
03.02.2021 13:55:32
0
dbee8e0924074ead30d853a72543aee181654877
Use 32BLIT_DIR instead of 32BLIT_PATH in remaining CMake files
[ { "change_type": "MODIFY", "old_path": "32blit-sdl/CMakeLists.txt", "new_path": "32blit-sdl/CMakeLists.txt", "diff": "@@ -30,8 +30,8 @@ else()\nendif()\n# fallback guess for SDL location on Windows\n- if(WIN32 AND NOT SDL2_DIR AND 32BLIT_PATH)\n- set(SDL2_DIR \"${32BLIT_PATH}/vs/sdl\")\n+ if(WIN32 A...
C
MIT License
pimoroni/32blit-beta
Use 32BLIT_DIR instead of 32BLIT_PATH in remaining CMake files
510,654
03.02.2021 14:26:42
0
52fac3cb4c29916935d62241573316928427b6fb
Update docs for find_package and improve deprecation warning
[ { "change_type": "MODIFY", "old_path": "32blit.cmake", "new_path": "32blit.cmake", "diff": "-message(\"Please update your CMake project to use find_package() instead of include().\")\n+message(DEPRECATION \"\\\n+Please update your 32Blit cmake project to use:\n+ find_package(32BLIT CONFIG REQUIRED /...
C
MIT License
pimoroni/32blit-beta
Update docs for find_package and improve deprecation warning
510,654
07.02.2021 03:02:29
0
a79be8dbe061cbf4f8e7d35919a6054e3fc6110e
Use find_package instead of import in the backwards-compat This guarantees that 32BLIT_DIR will always be set, even if user didn't set it.
[ { "change_type": "MODIFY", "old_path": "32blit.cmake", "new_path": "32blit.cmake", "diff": "@@ -5,4 +5,4 @@ instead of:\ninclude(32blit.cmake)\nand use the variable 32BLIT_DIR instead of 32BLIT_PATH.\n\")\n-include(${CMAKE_CURRENT_LIST_DIR}/32blit-config.cmake)\n+find_package (32BLIT CONFIG REQUIRED...
C
MIT License
pimoroni/32blit-beta
Use find_package instead of import in the backwards-compat This guarantees that 32BLIT_DIR will always be set, even if user didn't set it.
510,646
09.02.2021 12:38:32
0
999f64329a16119a22df4ab5fe8fb95fd300720f
Improves the doom-fire demo Updates the algorithm to update / render in a single loop. Adds wind to doom fire and binds left/right DPAD keys. Button X is used to stop / start the fire.
[ { "change_type": "MODIFY", "old_path": "examples/doom-fire/doom-fire.cpp", "new_path": "examples/doom-fire/doom-fire.cpp", "diff": "@@ -33,6 +33,8 @@ Pen pallete[] = { // 36 colours\nuint8_t fire[screen_width * screen_height];\nuint32_t last_time = 0;\n+int8_t wind = 0;\n+bool enabled = true;\nuint3...
C
MIT License
pimoroni/32blit-beta
Improves the doom-fire demo - Updates the algorithm to update / render in a single loop. - Adds wind to doom fire and binds left/right DPAD keys. - Button X is used to stop / start the fire.
510,654
10.02.2021 11:53:06
0
82acfa1209fda62ee7a031c76f8153da59e867d4
Add a command line option to set the position of the SDL window This is useful for testing multiplayer games, as you can run two copies with arbitrary window positions.
[ { "change_type": "MODIFY", "old_path": "32blit-sdl/Main.cpp", "new_path": "32blit-sdl/Main.cpp", "diff": "@@ -180,6 +180,12 @@ int main(int argc, char *argv[]) {\n}\nelse if(arg_str == \"--listen\")\nmp_mode = Multiplayer::Mode::Listen;\n+ else if(arg_str == \"--position\") {\n+ int x, y;\n+ if(SDL_...
C
MIT License
pimoroni/32blit-beta
Add a command line option to set the position of the SDL window This is useful for testing multiplayer games, as you can run two copies with arbitrary window positions.
510,640
10.02.2021 16:34:20
0
e90d80445d9c294d69f8e115c581782c136817ff
Update tools links
[ { "change_type": "MODIFY", "old_path": "docs/Tools.md", "new_path": "docs/Tools.md", "diff": "# Tools <!-- omit in toc -->\n-The individual asset tools have been deprecated in favour of https://github.com/pimoroni/32blit-tools which installs `32blit` or `32blit.exe` command on Linux/Mac or Windows r...
C
MIT License
pimoroni/32blit-beta
Update tools links
510,640
10.02.2021 16:34:31
0
83923b71839710163210e192e3afc33eb1673a83
Prep README for SDK release
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "-# 32blit Beta Testing Release\n+# 32blit SDK\n-The code in this repository is intended for 32blit beta testers only. It's not intended for general release or for end users. If you expect to be able to get started ...
C
MIT License
pimoroni/32blit-beta
Prep README for SDK release
510,640
10.02.2021 16:50:03
0
8363297a10b3bceac701d10943f92a1d53fcd510
Document new install command
[ { "change_type": "MODIFY", "old_path": "docs/32blit.md", "new_path": "docs/32blit.md", "diff": "@@ -80,14 +80,16 @@ To build, flash and run the `logo` example.\n#### With the 32blit tool\n-Alternatively, you can use the tool directly:\n+Alternatively, you can use the tool to flash a game directly:\n...
C
MIT License
pimoroni/32blit-beta
Document new install command
510,640
10.02.2021 17:29:33
0
f949ce19a0ab19b266528efd5c7e540c00437a64
Bump 32blit tools version
[ { "change_type": "MODIFY", "old_path": "32blit-config.cmake", "new_path": "32blit-config.cmake", "diff": "@@ -3,7 +3,7 @@ if (NOT DEFINED BLIT_ONCE)\nset(CMAKE_CXX_STANDARD 17)\nset(CMAKE_CXX_EXTENSIONS OFF)\n- set(BLIT_MINIMUM_TOOLS_VERSION \"0.4.0\")\n+ set(BLIT_MINIMUM_TOOLS_VERSION \"0.6.0\")\nf...
C
MIT License
pimoroni/32blit-beta
Bump 32blit tools version
510,665
15.02.2021 12:06:29
0
7f1ab1ab4e05464a50991bce7bcbb4f6f02022bf
Added an example of scaling with sprite() function
[ { "change_type": "MODIFY", "old_path": "examples/sprite-test/sprite-test.cpp", "new_path": "examples/sprite-test/sprite-test.cpp", "diff": "@@ -39,7 +39,8 @@ void render(uint32_t time_ms) {\nscreen.text(\"Flip\", minimal_font, Point(5, 100));\n// Right Titles\n- screen.text(\"Big\", minimal_font, Po...
C
MIT License
pimoroni/32blit-beta
Added an example of scaling with sprite() function
510,665
15.02.2021 13:18:44
0
8274f45a69fbdfdbd4a4f36ac6c54c7a4e322998
Made the comment a little clearer, too
[ { "change_type": "MODIFY", "old_path": "examples/sprite-test/sprite-test.cpp", "new_path": "examples/sprite-test/sprite-test.cpp", "diff": "@@ -96,7 +96,9 @@ void render(uint32_t time_ms) {\n);\n// Also, stretched with the scale factor of the normal sprite functions\n- screen.sprite(Point(0,0), Poin...
C
MIT License
pimoroni/32blit-beta
Made the comment a little clearer, too
510,640
19.02.2021 21:27:20
0
cae1ae222c5a61459ae4e2c514cc09cb0f5865da
Basic test/demo of the metadata API
[ { "change_type": "MODIFY", "old_path": "examples/CMakeLists.txt", "new_path": "examples/CMakeLists.txt", "diff": "@@ -12,6 +12,7 @@ add_subdirectory(hardware-test)\nadd_subdirectory(jpeg)\nadd_subdirectory(logo)\nadd_subdirectory(matrix-test)\n+add_subdirectory(metadata-test)\nadd_subdirectory(mp3)\...
C
MIT License
pimoroni/32blit-beta
Basic test/demo of the metadata API
510,640
20.02.2021 19:51:47
0
889a3e5b04d6c89e258f9f0be44ca626b97b3a30
Add metadata-test to emscripten index
[ { "change_type": "MODIFY", "old_path": "site/examples/index.html", "new_path": "site/examples/index.html", "diff": "<script type=\"text/javascript\">\nconst examples = [\n\"audio-test\", \"audio-wave\", \"doom-fire\", \"fizzlefade\", \"flight\", \"geometry\", \"hardware-test\", \"logo\",\n- \"matrix...
C
MIT License
pimoroni/32blit-beta
Add metadata-test to emscripten index
510,640
20.02.2021 20:29:15
0
e11f7a94167b33d29c42fd3dde7ed97bfff92088
Update Emscripten docs
[ { "change_type": "MODIFY", "old_path": "docs/Emscripten.md", "new_path": "docs/Emscripten.md", "diff": "@@ -19,11 +19,11 @@ In your project directory:\n``` shell\nmkdir build.em\ncd build.em\n-emcmake cmake .. -G \"Unix Makefiles\"\n+emcmake cmake .. -D32BLIT_DIR=\"/path/to/32blit/repo\"\nmake\npyth...
C
MIT License
pimoroni/32blit-beta
Update Emscripten docs
510,640
22.02.2021 15:43:01
0
933735d67fc8b8c96d5f948714a368b14116cafc
Bump tools version to 0.6.1 The new tools output the metadata required for SDL builds to support the metadata API. Additionally the "install" command has changed to skip auto-launch, and a new launch command has been implemented instead.
[ { "change_type": "MODIFY", "old_path": "32blit-config.cmake", "new_path": "32blit-config.cmake", "diff": "@@ -3,7 +3,7 @@ if (NOT DEFINED BLIT_ONCE)\nset(CMAKE_CXX_STANDARD 17)\nset(CMAKE_CXX_EXTENSIONS OFF)\n- set(BLIT_MINIMUM_TOOLS_VERSION \"0.6.0\")\n+ set(BLIT_MINIMUM_TOOLS_VERSION \"0.6.1\")\nf...
C
MIT License
pimoroni/32blit-beta
Bump tools version to 0.6.1 The new tools output the metadata required for SDL builds to support the metadata API. Additionally the "install" command has changed to skip auto-launch, and a new launch command has been implemented instead.
510,668
22.02.2021 17:30:32
28,800
dae873c59831ee5420aed7a36a15f5c27183adca
Replace prng_lfsr with prng_xorshift in audio.cpp It's a better PRNG and still very simple.
[ { "change_type": "MODIFY", "old_path": "32blit/audio/audio.cpp", "new_path": "32blit/audio/audio.cpp", "diff": "namespace blit {\n- uint32_t prng_lfsr = 0x32B71700;\n- constexpr uint16_t prng_tap = 0xb874;\n+ uint32_t prng_xorshift_state = 0x32B71700;\n- uint32_t prng_lfsr_next() {\n- uint8_t lsb = ...
C
MIT License
pimoroni/32blit-beta
Replace prng_lfsr with prng_xorshift in audio.cpp It's a better PRNG and still very simple.
510,668
22.02.2021 17:33:31
28,800
199afc3676b13beae92e9694c9516cf63d0f9001
Approximate normal-distribution noise generator. Generate noise using a normal distribution for each sample, as is the convention. This uses a simple Irwin-Hall approximation.
[ { "change_type": "MODIFY", "old_path": "32blit/audio/audio.cpp", "new_path": "32blit/audio/audio.cpp", "diff": "@@ -20,6 +20,14 @@ namespace blit {\nreturn x;\n}\n+ int32_t prng_normal() {\n+ // rough approximation of a normal distribution\n+ uint32_t r0 = prng_xorshift_next();\n+ uint32_t r1 = prng...
C
MIT License
pimoroni/32blit-beta
Approximate normal-distribution noise generator. Generate noise using a normal distribution for each sample, as is the convention. This uses a simple Irwin-Hall approximation.
510,640
24.02.2021 16:31:14
0
cda48fc7258be7ec019d424e8e2f72e167dc7840
Make audio-test less loud and obnoxious Slows down and lowers the volume of the audio-test melody so it doesn't cause any more sudden scares. Also refines the drums to make better use of the upgraded noise waveform and just be more drum like.
[ { "change_type": "MODIFY", "old_path": "examples/audio-test/audio-test.cpp", "new_path": "examples/audio-test/audio-test.cpp", "diff": "using namespace blit;\n-// gadgetoid's amazing masterpiece!\n-int16_t notes[3][384] = {\n+#define HAT 20000\n+#define BASS 500\n+#define SNARE 6000\n+#define SUB 50...
C
MIT License
pimoroni/32blit-beta
Make audio-test less loud and obnoxious Slows down and lowers the volume of the audio-test melody so it doesn't cause any more sudden scares. Also refines the drums to make better use of the upgraded noise waveform and just be more drum like.
510,657
01.03.2021 13:20:56
-7,200
a2154275fa215234e1b240fb5ff9e76e79b55979
Implement == and != operators for Point and Rect For usefulness and consistency's sake.
[ { "change_type": "MODIFY", "old_path": "32blit/types/point.hpp", "new_path": "32blit/types/point.hpp", "diff": "@@ -28,6 +28,8 @@ namespace blit {\n}\n};\n+ inline bool operator== (const Point &lhs, const Point &rhs) { return lhs.x == rhs.x && lhs.y == rhs.y; }\n+ inline bool operator!= (const Point...
C
MIT License
pimoroni/32blit-beta
Implement == and != operators for Point and Rect (#619) For usefulness and consistency's sake.
510,654
06.03.2021 11:01:54
0
5e939d0431fb87ddb5b75bd59d6af04fe6ab7990
Make the multiplayer example a bit more interesting Adds a sequence number to each message, implements scrolling, and shows a count of messages sent and received.
[ { "change_type": "MODIFY", "old_path": "examples/multiplayer/multiplayer.cpp", "new_path": "examples/multiplayer/multiplayer.cpp", "diff": "#include <cstring>\n+#include <deque>\n#include \"multiplayer.hpp\"\nusing namespace blit;\n-std::vector<std::string> messages;\n+std::deque<std::string> messag...
C
MIT License
pimoroni/32blit-beta
Make the multiplayer example a bit more interesting Adds a sequence number to each message, implements scrolling, and shows a count of messages sent and received.
510,640
09.03.2021 18:24:33
0
c1bbc9d2d233b266a0bed6e45b6b0e628895a4bc
Re-init launcher if it's running when a game is flashed Detects if the launcher is running after a game is flashed, and calls its `init()` to force flash to be re-scanned.
[ { "change_type": "MODIFY", "old_path": "firmware/firmware.cpp", "new_path": "firmware/firmware.cpp", "diff": "@@ -614,6 +614,10 @@ static const uint8_t *flash_to_tmp(const std::string &filename, uint32_t &size)\nreturn (const uint8_t *)(qspi_flash_address + flash_offset);\n}\n+static bool blit_is_la...
C
MIT License
pimoroni/32blit-beta
Re-init launcher if it's running when a game is flashed Detects if the launcher is running after a game is flashed, and calls its `init()` to force flash to be re-scanned. Co-authored-by: Charlie Birks <charlie@daft.games>
510,640
11.03.2021 21:53:50
0
23629442c030e259a29edd4b04aa03c1bdd175e5
Use std::cerr
[ { "change_type": "MODIFY", "old_path": "32blit-sdl/Audio.cpp", "new_path": "32blit-sdl/Audio.cpp", "diff": "@@ -24,11 +24,9 @@ Audio::Audio() {\naudio_device = SDL_OpenAudioDevice(nullptr, 0, &desired, &audio_spec, 0);\nif(audio_device == 0){\n- std::cout << \"Audio Init Failed: \" << SDL_GetError()...
C
MIT License
pimoroni/32blit-beta
Use std::cerr
510,640
11.03.2021 22:06:51
0
0fa84ab8f3b076f70e09241ee0cc642ed802d3ca
Add --credits to SDL builds
[ { "change_type": "MODIFY", "old_path": "32blit-sdl/Main.cpp", "new_path": "32blit-sdl/Main.cpp", "diff": "#include \"Audio.hpp\"\n#include \"UserCode.hpp\"\n+#include \"../launcher/contrib.hpp\"\n+\n#ifdef VIDEO_CAPTURE\n#include \"VideoCapture.hpp\"\n#endif\n@@ -163,6 +165,26 @@ int main(int argc, ...
C
MIT License
pimoroni/32blit-beta
Add --credits to SDL builds
510,640
12.03.2021 13:49:13
0
6ccb16c564bc2f7632c58c7dc2d7ab285edb8b28
Move contrib.hpp and update tooling
[ { "change_type": "MODIFY", "old_path": ".github/workflows/cmake.yml", "new_path": ".github/workflows/cmake.yml", "diff": "@@ -96,7 +96,7 @@ jobs:\nshell: bash\nrun: |\necho \"TRAVIS_TAG=${{github.event.release.tag_name}}\" >> $GITHUB_ENV\n- python3 launcher/update-contributors.py || python launcher/...
C
MIT License
pimoroni/32blit-beta
Move contrib.hpp and update tooling
510,640
17.03.2021 09:25:17
0
df3e64448714988288fba37cbbc3f28b68156b59
Remove swoosh from behind credits and screenshot browser Fixes a couple of instances where the background swooshes were tanking framerate unecessarily: * Behind the credits screen * Behind the screenshot browser
[ { "change_type": "MODIFY", "old_path": "launcher/launcher.cpp", "new_path": "launcher/launcher.cpp", "diff": "@@ -396,7 +396,7 @@ void render(uint32_t time) {\nscreen.pen = theme.color_background;\nscreen.clear();\n- if(currentScreen != Screen::screenshot) {\n+ if(currentScreen != Screen::screenshot...
C
MIT License
pimoroni/32blit-beta
Remove swoosh from behind credits and screenshot browser Fixes a couple of instances where the background swooshes were tanking framerate unecessarily: * Behind the credits screen * Behind the screenshot browser
510,640
17.03.2021 09:25:48
0
c2fe3ff1f9b794a3c202c9793e63d97f51ed27ac
Add toggleable FPS meter to launcher Shows the framerate in milliseconds using a bargraph (1ms = 1 dot) and the frame time in microseconds. Enter the credits screen and press Y to toggle.
[ { "change_type": "MODIFY", "old_path": "launcher/launcher.cpp", "new_path": "launcher/launcher.cpp", "diff": "@@ -28,6 +28,7 @@ constexpr uint32_t qspi_flash_sector_size = 64 * 1024;\nstatic Screen currentScreen = Screen::main;\n+bool show_fps = false;\nbool sd_detected = true;\nVec2 file_list_scrol...
C
MIT License
pimoroni/32blit-beta
Add toggleable FPS meter to launcher Shows the framerate in milliseconds using a bargraph (1ms = 1 dot) and the frame time in microseconds. Enter the credits screen and press Y to toggle.
510,640
17.03.2021 10:22:03
0
c1033db05689984aa0e6ee3f6dad2d55f820b7a6
Change launcher swoosh to look less glitchy Removes the "aesthetic" "optimisation" from the launcher and, instead, draws 8 horizontal pixels at a time with h_span. The result looks more intentional and less like a display glitch. Swooshes are also now slightly less transparent.
[ { "change_type": "MODIFY", "old_path": "launcher/launcher.cpp", "new_path": "launcher/launcher.cpp", "diff": "@@ -362,9 +362,9 @@ void init() {\ncredits::prepare();\n}\n-void swoosh(uint32_t time, float t1, float t2, float s1, float s2, int t0, int offset_y=120, int size=60, int alpha=45) {\n- for(a...
C
MIT License
pimoroni/32blit-beta
Change launcher swoosh to look less glitchy Removes the "aesthetic" "optimisation" from the launcher and, instead, draws 8 horizontal pixels at a time with h_span. The result looks more intentional and less like a display glitch. Swooshes are also now slightly less transparent.
510,665
17.03.2021 14:44:11
0
a77cc123d324cd11828666b531fea042835a9da9
Made offset(Point) callable, reduced function redundancy!
[ { "change_type": "MODIFY", "old_path": "32blit/graphics/tilemap.cpp", "new_path": "32blit/graphics/tilemap.cpp", "diff": "@@ -44,26 +44,6 @@ namespace blit {\nreturn ret;\n}\n- /**\n- * TODO: Document\n- */\n- int32_t TileMap::offset(const Point &p) {\n- int32_t cx = ((uint32_t)p.x) & (bounds.w - 1)...
C
MIT License
pimoroni/32blit-beta
Made offset(Point) callable, reduced function redundancy!
510,665
14.04.2021 09:49:34
-3,600
62465fd0b882ce8d9627caddf9c26fc709b51a76
Removed out-dated template directory, to avoid confusion
[ { "change_type": "DELETE", "old_path": "template/CMakeLists.txt", "new_path": null, "diff": "-cmake_minimum_required(VERSION 3.9)\n-project (game)\n-find_package (32BLIT CONFIG REQUIRED PATHS ..)\n-blit_executable (game game.cpp game.hpp)\n" }, { "change_type": "DELETE", "old_path": "tem...
C
MIT License
pimoroni/32blit-beta
Removed out-dated template directory, to avoid confusion
510,665
14.04.2021 11:52:44
-3,600
0a10bdc1748e2be02a04e9c39434f4ef0610467d
Cleaned up mention of the old template directory
[ { "change_type": "MODIFY", "old_path": "docs/32blit.md", "new_path": "docs/32blit.md", "diff": "@@ -97,7 +97,7 @@ Or save it to your SD card:\n## Your Own Projects\n-You can build a project based on the template by running:\n+You can build a project based on the boilerplate (https://github.com/32bli...
C
MIT License
pimoroni/32blit-beta
Cleaned up mention of the old template directory
510,665
14.04.2021 15:48:13
-3,600
3d483df1912774938ac872784670438cf6858c56
Added --launch_path option to SDL builds
[ { "change_type": "MODIFY", "old_path": "32blit-sdl/Main.cpp", "new_path": "32blit-sdl/Main.cpp", "diff": "@@ -32,6 +32,8 @@ Multiplayer *blit_multiplayer;\nRenderer *blit_renderer;\nAudio *blit_audio;\n+const char *launch_path = nullptr;\n+\n#ifdef VIDEO_CAPTURE\nVideoCapture *blit_capture;\nunsigne...
C
MIT License
pimoroni/32blit-beta
Added --launch_path option to SDL builds
510,665
15.04.2021 08:19:03
-3,600
1d5bb25a08b29b59218a866d47521b14a52ddd90
Shifted the extern to a 'better' place
[ { "change_type": "MODIFY", "old_path": "32blit-sdl/System.cpp", "new_path": "32blit-sdl/System.cpp", "diff": "@@ -90,6 +90,8 @@ uint32_t get_max_us_timer()\nreturn UINT32_MAX;\n}\n+/* Added a command line ability to specify a launch_path parameter. */\n+extern const char *launch_path;\nstatic const ...
C
MIT License
pimoroni/32blit-beta
Shifted the extern to a 'better' place
510,640
26.05.2021 15:30:18
-3,600
507cf661092a2835a6bdea7331c04d719eb6f085
Bump tools version to 0.7.0
[ { "change_type": "MODIFY", "old_path": "32blit-config.cmake", "new_path": "32blit-config.cmake", "diff": "@@ -3,7 +3,7 @@ if (NOT DEFINED BLIT_ONCE)\nset(CMAKE_CXX_STANDARD 17)\nset(CMAKE_CXX_EXTENSIONS OFF)\n- set(BLIT_MINIMUM_TOOLS_VERSION \"0.6.1\")\n+ set(BLIT_MINIMUM_TOOLS_VERSION \"0.7.0\")\nf...
C
MIT License
pimoroni/32blit-beta
Bump tools version to 0.7.0
510,640
27.05.2021 15:14:45
-3,600
cc42b1d104cc0b0da64719f04e07a1274651d796
Add user_data field for Timer This is used by 32blit-lua to store the Lua state and callback function reference.
[ { "change_type": "MODIFY", "old_path": "32blit/engine/timer.hpp", "new_path": "32blit/engine/timer.hpp", "diff": "@@ -11,6 +11,7 @@ namespace blit {\n// uint32_t callback; // reference to Lua callback function (can be obtained via `ref = _G['function_name']`)\nTimerCallback callback = nullptr;\n+ vo...
C
MIT License
pimoroni/32blit-beta
Add user_data field for Timer This is used by 32blit-lua to store the Lua state and callback function reference.
510,640
27.05.2021 15:17:16
-3,600
1752ef58d939392b87a4e25e18d2d284913a9c54
Add user_data to Tweens
[ { "change_type": "MODIFY", "old_path": "32blit/engine/tweening.hpp", "new_path": "32blit/engine/tweening.hpp", "diff": "@@ -9,6 +9,7 @@ namespace blit {\nstruct Tween {\nusing TweenFunction = float (*)(uint32_t t, float b, float c, uint32_t d);\nTweenFunction function = nullptr;\n+ void *user_data =...
C
MIT License
pimoroni/32blit-beta
Add user_data to Tweens
510,640
14.06.2021 09:47:41
-3,600
9d49afe330d09d7a716e591fa97d29a33001f170
Update Linux docs Remove separate install of construct/bitstring since these are required by the tools anyway. Add line continuations to the apt install command to make it clear it's *one* command. Add a troubleshooting section detailing a quick fix for pip3 complaints about PATH.
[ { "change_type": "MODIFY", "old_path": "docs/Linux.md", "new_path": "docs/Linux.md", "diff": "@@ -25,16 +25,18 @@ For 32Blit device builds:\nNew enough versions of these exist in at least Debian \"buster\" and Ubuntu 20.04.\n-```\n-sudo apt install git gcc g++ gcc-arm-none-eabi cmake make python3 py...
C
MIT License
pimoroni/32blit-beta
Update Linux docs Remove separate install of construct/bitstring since these are required by the tools anyway. Add line continuations to the apt install command to make it clear it's *one* command. Add a troubleshooting section detailing a quick fix for pip3 complaints about PATH.
510,640
06.08.2021 15:39:56
-3,600
17207c3982301c50f388cd6b9953af5ff55a6f17
Make vspan respect clip rectangle Raycaster uses vspan to draw walls and sprites, and was paying the cost for walls drawn under the HUD. Clip Rect support in vspan allows it to gain a little extra performance by not drawing things you can't see. Don't set a clip Rect larger than the screen...
[ { "change_type": "MODIFY", "old_path": "32blit/graphics/surface.cpp", "new_path": "32blit/graphics/surface.cpp", "diff": "@@ -534,20 +534,19 @@ namespace blit {\nfloat v = uv.y;\nfloat vs = float(sc) / float(dc);\n- if (p.y < 0) {\n- dc += p.y;\n- v += (vs * float(-p.y));\n- p.y = 0;\n+ if (p.y < cl...
C
MIT License
pimoroni/32blit-beta
Make vspan respect clip rectangle Raycaster uses vspan to draw walls and sprites, and was paying the cost for walls drawn under the HUD. Clip Rect support in vspan allows it to gain a little extra performance by not drawing things you can't see. Don't set a clip Rect larger than the screen...
510,640
06.08.2021 15:42:37
-3,600
7df3f8550bb1bbd3bb9b810131e87dbde43c4ba6
RayCaster - add fake volumetric bug spray Uses sprites projected from the spray can nozzle with a gradual change in opacity/size to simulate a cloud of bug spray. Spray has nozzle velocity and, actually by accident, slowly floats up into the air.
[ { "change_type": "MODIFY", "old_path": "examples/raycaster/raycaster.cpp", "new_path": "examples/raycaster/raycaster.cpp", "diff": "@@ -15,12 +15,21 @@ Vec2 ray_cache[SCREEN_WIDTH];\nstd::vector<sprite> map_sprites(NUM_SPRITES);\nstd::vector<star> stars(NUM_STARS);\n+std::vector<sprite> spray(MAX_SP...
C
MIT License
pimoroni/32blit-beta
RayCaster - add fake volumetric bug spray Uses sprites projected from the spray can nozzle with a gradual change in opacity/size to simulate a cloud of bug spray. Spray has nozzle velocity and, actually by accident, slowly floats up into the air.
510,640
06.08.2021 16:00:07
-3,600
6cbfaee7d2191697b08e0d921bda512227bcb4cb
Raycaster - remove unused variable Also disable -Werror to pass CI. I've cleaned up the stuff that GCC complained about.
[ { "change_type": "MODIFY", "old_path": "examples/raycaster/CMakeLists.txt", "new_path": "examples/raycaster/CMakeLists.txt", "diff": "@@ -5,4 +5,3 @@ blit_executable (raycaster raycaster.cpp)\nblit_assets_yaml(raycaster assets.yml)\nblit_metadata (raycaster metadata.yml)\ntarget_compile_definitions(...
C
MIT License
pimoroni/32blit-beta
Raycaster - remove unused variable Also disable -Werror to pass CI. I've cleaned up the stuff that GCC complained about.
510,640
10.08.2021 23:59:43
-3,600
2efa0a829116d81c37596dec3452f29391b32798
Geometry: accurate polygon area and centroid Drop the old rectangle bounds approach and calculate the polygon area and centroid "correctly." Some tweaks to velocity/rotation imparted upon asteroid halves when split.
[ { "change_type": "MODIFY", "old_path": "examples/geometry/geometry.cpp", "new_path": "examples/geometry/geometry.cpp", "diff": "using namespace blit;\n#define __AUDIO__\n+//#define __DEBUG__\n-#define COLLECT_THRESHOLD (unsigned short)150\n-#define DISCARD_THRESHOLD (unsigned short)20\n-const uint32...
C
MIT License
pimoroni/32blit-beta
Geometry: accurate polygon area and centroid Drop the old rectangle bounds approach and calculate the polygon area and centroid "correctly." Some tweaks to velocity/rotation imparted upon asteroid halves when split.
510,640
11.08.2021 08:45:57
-3,600
e584733494691c5c4a291ec8c66ddcef6b6492f3
Geometry: add pre-shot aim indicator Change laser to "charge" with A held and fire when it's released. Charging the laser consumes energy. Holding B slows rotation speed for accurate aiming.
[ { "change_type": "MODIFY", "old_path": "examples/geometry/geometry.cpp", "new_path": "examples/geometry/geometry.cpp", "diff": "@@ -11,8 +11,8 @@ using namespace blit;\nconst int16_t STARTING_ENERGY = 500;\nconst int16_t REGEN_ENERGY = 1;\n-const int16_t LASER_COST = 50;\n-const int16_t MOVEMENT_COS...
C
MIT License
pimoroni/32blit-beta
Geometry: add pre-shot aim indicator Change laser to "charge" with A held and fire when it's released. Charging the laser consumes energy. Holding B slows rotation speed for accurate aiming.
510,640
11.08.2021 21:25:07
-3,600
e023ddb29cedb506d0e795c5b0e22ecbbbe0d259
Fix random and area calculations Use blit::random everywhere, and add a helper for random numbers in a given range. Fix overflow issues with area calculation so we don't get tiny, tiny little glitched polygons. Turns out the naive bounding box approach painted over the cracks.
[ { "change_type": "MODIFY", "old_path": "examples/geometry/geometry.cpp", "new_path": "examples/geometry/geometry.cpp", "diff": "@@ -123,7 +123,7 @@ uint16_t area_of_polygon(std::vector<Vec2> &points) {\na = b;\n}\n// Fix for infinitely small poygons shooting to 65535\n- return area > 60000 ? 0u : (u...
C
MIT License
pimoroni/32blit-beta
Fix random and area calculations Use blit::random everywhere, and add a helper for random numbers in a given range. Fix overflow issues with area calculation so we don't get tiny, tiny little glitched polygons. Turns out the naive bounding box approach painted over the cracks.
510,640
17.08.2021 16:55:34
-3,600
3ea2384d873db0665aabc17272338b8c862f4c52
Geometry: slight refactor, capitalise types
[ { "change_type": "MODIFY", "old_path": "examples/geometry/geometry.cpp", "new_path": "examples/geometry/geometry.cpp", "diff": "using namespace blit;\n-#define __AUDIO__\n-//#define __DEBUG__\n-\n-\n-const int16_t STARTING_ENERGY = 500;\n-const int16_t REGEN_ENERGY = 1;\n-const int16_t LASER_COST = ...
C
MIT License
pimoroni/32blit-beta
Geometry: slight refactor, capitalise types
510,640
17.08.2021 20:04:54
-3,600
811470f0a7321d5f8d1cc3f14468f95994ad2eaf
Geometry: add asset pack to vcxproj
[ { "change_type": "MODIFY", "old_path": "vs/examples/geometry/geometry.vcxproj", "new_path": "vs/examples/geometry/geometry.vcxproj", "diff": "<PropertyGroup Label=\"UserMacros\" />\n<PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|Win32'\">\n<LinkIncremental>true</LinkIncremental>\n...
C
MIT License
pimoroni/32blit-beta
Geometry: add asset pack to vcxproj
510,640
18.08.2021 12:02:37
-3,600
c1f8cfb964f542c0d5ee4fe62af94a5b33e08b54
Geometry: vector style font and life bar
[ { "change_type": "DELETE", "old_path": "examples/geometry/PressStart2P-Regular.ttf", "new_path": "examples/geometry/PressStart2P-Regular.ttf", "diff": "Binary files a/examples/geometry/PressStart2P-Regular.ttf and /dev/null differ\n" }, { "change_type": "MODIFY", "old_path": "examples/ge...
C
MIT License
pimoroni/32blit-beta
Geometry: vector style font and life bar
510,640
20.08.2021 16:18:33
-3,600
9fa39b9f50d517c2e0cffcf1e9eb7636516c6ed5
pico: Tweak ST7789 gamma
[ { "change_type": "MODIFY", "old_path": "32blit-pico/st7789.cpp", "new_path": "32blit-pico/st7789.cpp", "diff": "@@ -160,8 +160,10 @@ namespace pimoroni {\ncommand(reg::VRHS, 1, \"\\x12\");\ncommand(reg::VDVS, 1, \"\\x20\");\ncommand(reg::PWCTRL1, 2, \"\\xa4\\xa1\");\n- command(reg::PVGAMCTRL, 14, \"...
C
MIT License
pimoroni/32blit-beta
pico: Tweak ST7789 gamma
510,640
09.09.2021 09:33:18
-3,600
e4debd38bccd805b0c4565de7a56113d0ac17fb3
pico: PWM audio support for PicoSystem Bring up PWM audio on GPIO 11, pio1 for PicoSystem. This enables audio output for the 32blit audio engine, but the transistor-amplified piezo on PicoSystem is *really* quiet. Music is probably a no-go on this feeble beeper.
[ { "change_type": "MODIFY", "old_path": "32blit-pico/CMakeLists.txt", "new_path": "32blit-pico/CMakeLists.txt", "diff": "@@ -45,7 +45,11 @@ if(${PICO_BOARD} STREQUAL \"vgaboard\")\n)\nelseif(${PICO_BOARD} STREQUAL \"pimoroni_picosystem\")\nmessage(\"Using picosystem...\")\n+ target_link_libraries(Bli...
C
MIT License
pimoroni/32blit-beta
pico: PWM audio support for PicoSystem Bring up PWM audio on GPIO 11, pio1 for PicoSystem. This enables audio output for the 32blit audio engine, but the transistor-amplified piezo on PicoSystem is *really* quiet. Music is probably a no-go on this feeble beeper.
510,640
09.09.2021 15:21:34
-3,600
04a1ffc0659c96456d8cf3c8d682b05f12c18e11
engine: fix bug in audio sustain In some cases the ADSR might never decay fully to 0. * If sustain volume is 0, proceed right from decay -> off * Clamp ADSR to sustain volume when sustain phase is triggered
[ { "change_type": "MODIFY", "old_path": "32blit/audio/audio.hpp", "new_path": "32blit/audio/audio.hpp", "diff": "@@ -104,10 +104,15 @@ namespace blit {\nadsr_step = (int32_t(sustain << 8) - int32_t(adsr)) / int32_t(adsr_end_frame);\n}\nvoid trigger_sustain() {\n+ if(sustain == 0) {\n+ off();\n+ retur...
C
MIT License
pimoroni/32blit-beta
engine: fix bug in audio sustain In some cases the ADSR might never decay fully to 0. * If sustain volume is 0, proceed right from decay -> off * Clamp ADSR to sustain volume when sustain phase is triggered
510,640
09.09.2021 15:23:26
-3,600
65f0173b103a135df25fa43ddba061b7496e624f
pico: add support for naive PWM piezo audio Extract the frequency/duty cycle from the first SQUARE wave channel and route it to PWM on GPIO 11. Run the audio engine to process ADSR phases.
[ { "change_type": "MODIFY", "old_path": "32blit-pico/CMakeLists.txt", "new_path": "32blit-pico/CMakeLists.txt", "diff": "@@ -45,11 +45,9 @@ if(${PICO_BOARD} STREQUAL \"vgaboard\")\n)\nelseif(${PICO_BOARD} STREQUAL \"pimoroni_picosystem\")\nmessage(\"Using picosystem...\")\n- target_link_libraries(Bli...
C
MIT License
pimoroni/32blit-beta
pico: add support for naive PWM piezo audio Extract the frequency/duty cycle from the first SQUARE wave channel and route it to PWM on GPIO 11. Run the audio engine to process ADSR phases. Co-authored-by: Charlie Birks <charlie@daft.games>
510,640
09.09.2021 19:28:52
-3,600
c283d6ce786c54d725a27b62f35c5171626c3b2f
Raycaster: Low settings for all Pico builds
[ { "change_type": "MODIFY", "old_path": "examples/raycaster/raycaster.hpp", "new_path": "examples/raycaster/raycaster.hpp", "diff": "@@ -8,7 +8,7 @@ constexpr float M_PI_H = 1.5707963267948966f;\nconstexpr float EPSILON = 0.00000001f;\n-#ifdef DISPLAY_ST7789\n+#ifdef PICO_BOARD\nconstexpr uint16_t OF...
C
MIT License
pimoroni/32blit-beta
Raycaster: Low settings for all Pico builds
510,640
09.09.2021 19:29:09
-3,600
bf5688441e8d4e25da2736f5633b9a2f9e130161
Geometry: enable SQUARE wave for beep audio
[ { "change_type": "MODIFY", "old_path": "examples/geometry/geometry.cpp", "new_path": "examples/geometry/geometry.cpp", "diff": "@@ -270,7 +270,7 @@ void init() {\nchannels[0].release_ms = 10;\nchannels[0].volume = 4000;\n- channels[1].waveforms = Waveform::SINE;\n+ channels[1].waveforms = Waveform::...
C
MIT License
pimoroni/32blit-beta
Geometry: enable SQUARE wave for beep audio
510,640
09.09.2021 19:33:39
-3,600
9b2d7386281e4128e7c5a95cf4e77ed0906e040d
pico: hardware test for PicoSystem Add a hardware test for the RP2040-based PicoSystem. Since the PicoSystem has fewer buttons, no joystick and no tilt it makes more sense to ship a different hardware-test rather than IFDEF the other one to oblivion.
[ { "change_type": "MODIFY", "old_path": "examples/CMakeLists.txt", "new_path": "examples/CMakeLists.txt", "diff": "@@ -9,6 +9,7 @@ add_subdirectory(fizzlefade)\nadd_subdirectory(flight)\nadd_subdirectory(geometry)\nadd_subdirectory(hardware-test)\n+add_subdirectory(picosystem-hardware-test)\nadd_subd...
C
MIT License
pimoroni/32blit-beta
pico: hardware test for PicoSystem Add a hardware test for the RP2040-based PicoSystem. Since the PicoSystem has fewer buttons, no joystick and no tilt it makes more sense to ship a different hardware-test rather than IFDEF the other one to oblivion.
510,640
10.09.2021 12:51:15
-3,600
9819d57bb59998568894ccb8b36f53d1d0256060
pico: allow builds to use PWM audio with -DAUDIO_PWM Specify `-DAUDIO_PWM:bool=true` when configuring and builds will use AUDIO_PWM instead of AUDIO_BEEP. This is intended for PicoSystems which have been end-user modified with a 20x15mm .7w 8Ohm speaker.
[ { "change_type": "MODIFY", "old_path": "32blit-pico/CMakeLists.txt", "new_path": "32blit-pico/CMakeLists.txt", "diff": "@@ -7,7 +7,6 @@ set(32BLIT_PICO 1 PARENT_SCOPE)\nadd_library(BlitHalPico INTERFACE)\ntarget_sources(BlitHalPico INTERFACE\n-\n${CMAKE_CURRENT_LIST_DIR}/../3rd-party/fatfs/ff.c\n${C...
C
MIT License
pimoroni/32blit-beta
pico: allow builds to use PWM audio with -DAUDIO_PWM Specify `-DAUDIO_PWM:bool=true` when configuring and builds will use AUDIO_PWM instead of AUDIO_BEEP. This is intended for PicoSystems which have been end-user modified with a 20x15mm .7w 8Ohm speaker.
510,654
12.09.2021 07:48:00
-3,600
500f2c7526cb4f1d96cc4ba8780d9bd3fc387b02
Update the pico extras helper This fixes so that PICO_EXTRAS_FETCH_FROM_GIT works.
[ { "change_type": "MODIFY", "old_path": "32blit-pico/pico_extras_import.cmake", "new_path": "32blit-pico/pico_extras_import.cmake", "diff": "@@ -26,14 +26,14 @@ if (NOT PICO_EXTRAS_PATH)\nget_filename_component(FETCHCONTENT_BASE_DIR \"${PICO_EXTRAS_FETCH_FROM_GIT_PATH}\" REALPATH BASE_DIR \"${CMAKE_S...
C
MIT License
pimoroni/32blit-beta
Update the pico extras helper This fixes https://github.com/raspberrypi/pico-extras/issues/24 so that PICO_EXTRAS_FETCH_FROM_GIT works.
510,654
15.09.2021 15:42:34
-3,600
59ff6aab1b3f6399fd1f9dc73a3f2c30860bf4ec
Allow building for pico by specifying a toolchain, same as 32blit To build a project for pico just do: cmake -DCMAKE_TOOLCHAIN_FILE=../../32blit-sdk/pico.toolchain .. You may optionally override PICO_BOARD and PICO_SDK_PATH
[ { "change_type": "MODIFY", "old_path": "32blit-pico/CMakeLists.txt", "new_path": "32blit-pico/CMakeLists.txt", "diff": "set(CMAKE_C_STANDARD 11)\n# Initialise the Pico SDK\n+include (pico_sdk_import.cmake)\n+include (pico_extras_import.cmake)\npico_sdk_init()\nset(32BLIT_PICO 1 PARENT_SCOPE)\n" },...
C
MIT License
pimoroni/32blit-beta
Allow building for pico by specifying a toolchain, same as 32blit To build a project for pico just do: cmake -DCMAKE_TOOLCHAIN_FILE=../../32blit-sdk/pico.toolchain .. You may optionally override PICO_BOARD and PICO_SDK_PATH
510,654
29.09.2021 21:33:17
-3,600
e8876fc42db9917c778e80639ccce351acba592b
Also call render from the user thread Someone moved the call to render out of the thread loop and into the texture update function. Same rationale for putting it back. It should not overlap other user code and it should be possible to detect if the user code hangs.
[ { "change_type": "MODIFY", "old_path": "32blit-sdl/System.cpp", "new_path": "32blit-sdl/System.cpp", "diff": "@@ -269,6 +269,7 @@ void System::loop()\nblit::joystick.y = shadow_joystick[1];\nSDL_UnlockMutex(m_input);\nblit::tick(::now());\n+ blit::render(::now());\nblit_multiplayer->update();\n}\n@@...
C
MIT License
pimoroni/32blit-beta
Also call render from the user thread Someone moved the call to render out of the thread loop and into the texture update function. Same rationale for putting it back. It should not overlap other user code and it should be possible to detect if the user code hangs.
510,640
01.07.2021 16:11:36
-3,600
edbace9e82b2f536b7d1f90ae063006cd5552acc
Switch to 32blit tools DFU tool
[ { "change_type": "MODIFY", "old_path": "32blit-stm32/CMakeLists.txt", "new_path": "32blit-stm32/CMakeLists.txt", "diff": "@@ -192,6 +192,6 @@ function(blit_executable_int_flash NAME SOURCES)\nadd_custom_command(TARGET ${NAME} POST_BUILD\nCOMMENT \"Building ${NAME}.dfu\"\n- COMMAND ${PYTHON_EXECUTABL...
C
MIT License
pimoroni/32blit-beta
Switch to 32blit tools DFU tool
510,640
07.10.2021 15:26:39
-3,600
04fc14132a2d54fa2b18e60d0aaa665714d8501c
Bump minimum tools version
[ { "change_type": "MODIFY", "old_path": "32blit-config.cmake", "new_path": "32blit-config.cmake", "diff": "@@ -3,7 +3,7 @@ if (NOT DEFINED BLIT_ONCE)\nset(CMAKE_CXX_STANDARD 17)\nset(CMAKE_CXX_EXTENSIONS OFF)\n- set(BLIT_MINIMUM_TOOLS_VERSION \"0.7.0\")\n+ set(BLIT_MINIMUM_TOOLS_VERSION \"0.7.1\")\nf...
C
MIT License
pimoroni/32blit-beta
Bump minimum tools version
510,640
07.10.2021 16:47:16
-3,600
5ebdcf6559af8756560d2572fe078f3b864442e9
README: Remove defunct Reddit link
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -54,7 +54,6 @@ Join the 32blit community on:\n* Discord (Chat) - https://discord.gg/7qM9ftC\n* Discourse (Forum) - https://forums.pimoroni.com/c/32blit/21\n-* Reddit (Anarchy) - https://www.reddit.com/r/32blit\n...
C
MIT License
pimoroni/32blit-beta
README: Remove defunct Reddit link
510,640
07.10.2021 16:48:02
-3,600
bc8a76a99cdc5aaad37f922de267e38e2f7af9d7
Docs: add landing page
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/README.md", "diff": "+# 32blit SDK\n+\n+OS specific docs, these cover setup and command-line builds:\n+\n+* [Linux](Linux.md)\n+* [Linux - ChromeOS](ChromeOS.md)\n+* [Windows](Windows.md)\n+* [Windows - WSL (Advanced)](Windows-WSL.md)\n+* [...
C
MIT License
pimoroni/32blit-beta
Docs: add landing page
510,640
08.10.2021 17:57:33
-3,600
1bdd276d5f3bcbc4515a93132bad5a177c0ddd22
PicoSystem: more docs tweaks
[ { "change_type": "MODIFY", "old_path": "docs/pico.md", "new_path": "docs/pico.md", "diff": "@@ -4,13 +4,14 @@ The Pico port brings the 32blit SDK to PicoSystem and other RP2040-based devices\nSince RP2040 is slower and less capable than 32blit's STM32H750 there are some limitations, but most of the ...
C
MIT License
pimoroni/32blit-beta
PicoSystem: more docs tweaks
510,640
12.10.2021 11:28:13
-3,600
96764d6bc9e173048de4c120c3e0621cc5731b6c
PicoSystem: update docs to use new picosystem-boilerplate
[ { "change_type": "MODIFY", "old_path": "docs/pico.md", "new_path": "docs/pico.md", "diff": "@@ -9,10 +9,9 @@ Since RP2040 is slower and less capable than 32blit's STM32H750 there are some l\n- [Fetch Pico SDK Automatically (Quick-Start)](#fetch-pico-sdk-automatically-quick-start)\n- [Existing Pico S...
C
MIT License
pimoroni/32blit-beta
PicoSystem: update docs to use new picosystem-boilerplate
510,640
29.10.2021 12:04:22
-3,600
caecc645bf98238f317b2d6c6914e7a576fe4051
Pico: 1.20v overvolt for stable 250MHz Required for stable 250MHz overclock on some PicoSystem units. Default voltage is 1.10v.
[ { "change_type": "MODIFY", "old_path": "32blit-pico/main.cpp", "new_path": "32blit-pico/main.cpp", "diff": "#include \"hardware/clocks.h\"\n#include \"hardware/structs/rosc.h\"\n+#include \"hardware/vreg.h\"\n#include \"pico/binary_info.h\"\n#include \"pico/stdlib.h\"\n@@ -232,6 +233,10 @@ static in...
C
MIT License
pimoroni/32blit-beta
Pico: 1.20v overvolt for stable 250MHz Required for stable 250MHz overclock on some PicoSystem units. Default voltage is 1.10v.
510,672
11.11.2021 23:28:14
-3,600
1bd7b73236b86e8754aa2a372c8e8b7cc387577e
Introducing game controller rumble
[ { "change_type": "MODIFY", "old_path": "32blit-sdl/Input.hpp", "new_path": "32blit-sdl/Input.hpp", "diff": "#include <map>\n+#include <vector>\nclass System;\n+struct game_controller\n+ {\n+ SDL_GameController* gc_id;\n+ bool can_rumble;\n+ };\n+\nclass Input {\npublic:\nstatic std::map<int, int> ke...
C
MIT License
pimoroni/32blit-beta
Introducing game controller rumble
510,658
28.11.2021 20:54:44
0
28a1e108b35ef8f0157ac126cf00c75daba90264
Fix double promotion warning
[ { "change_type": "MODIFY", "old_path": "32blit/audio/minimp3.h", "new_path": "32blit/audio/minimp3.h", "diff": "@@ -1422,8 +1422,8 @@ static int16_t mp3d_scale_pcm(float sample)\ns32 -= (s32 < 0);\nint16_t s = (int16_t)minimp3_clip_int16_arm(s32);\n#else\n- if (sample >= 32766.5) return (int16_t) 32...
C
MIT License
pimoroni/32blit-beta
Fix double promotion warning
510,664
26.12.2021 13:30:12
-3,600
4149ad39f5dfd21bd51a665182da803b20b03fdd
Fix mipmap boundary check
[ { "change_type": "MODIFY", "old_path": "32blit/types/map.cpp", "new_path": "32blit/types/map.cpp", "diff": "@@ -35,8 +35,9 @@ namespace blit {\nuint16_t mipmap_index = floorf(mipmap);\nuint8_t blend = (mipmap - floorf(mipmap)) * 255;\n- mipmap_index = mipmap_index >= sprites->mipmaps.size() ? uint16...
C
MIT License
pimoroni/32blit-beta
Fix mipmap boundary check
510,664
26.01.2022 22:58:01
-3,600
8dd464b059a0b2a7b63b12c540e2cc279e42d385
Add remove_save method to delete existing save data
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "@@ -23,6 +23,7 @@ bld/\nbuild/\nbuild.stm32/\nbuild.mingw/\n+cmake-build-debug/\n[Bb]in/\n[Oo]bj/\n[Ll]og/\n" }, { "change_type": "MODIFY", "old_path": "32blit-sdl/File.cpp", "new_path": "32blit-s...
C
MIT License
pimoroni/32blit-beta
Add remove_save method to delete existing save data
510,640
27.01.2022 14:06:07
0
4141c7457c7506e2fce505b4261270d1b65c4d66
Bump required tools version to 0.7.2
[ { "change_type": "MODIFY", "old_path": "32blit-config.cmake", "new_path": "32blit-config.cmake", "diff": "@@ -3,7 +3,7 @@ if (NOT DEFINED BLIT_ONCE)\nset(CMAKE_CXX_STANDARD 17)\nset(CMAKE_CXX_EXTENSIONS OFF)\n- set(BLIT_MINIMUM_TOOLS_VERSION \"0.7.1\")\n+ set(BLIT_MINIMUM_TOOLS_VERSION \"0.7.2\")\nf...
C
MIT License
pimoroni/32blit-beta
Bump required tools version to 0.7.2
510,647
20.08.2022 14:38:13
-3,600
03dd4f54758cf7f1b88c35538d98a168935886ac
Fixed inconsistencies and rotation matrix generation.
[ { "change_type": "MODIFY", "old_path": "32blit/types/mat3.cpp", "new_path": "32blit/types/mat3.cpp", "diff": "namespace blit {\nMat3::Mat3() {\n- v00 = 0.0f; v10 = 0.0f; v20 = 0.0f;\n- v01 = 0.0f; v11 = 0.0f; v21 = 0.0f;\n- v02 = 0.0f; v12 = 0.0f; v22 = 0.0f;\n+ v00 = 0.0f; v01 = 0.0f; v02 = 0.0f;\n...
C
MIT License
pimoroni/32blit-beta
Fixed inconsistencies and rotation matrix generation.
510,647
22.08.2022 08:07:48
-3,600
81876bbe03a8fedd8960fed389479e8a984f9dba
Updated examples which use Mat3::rotation
[ { "change_type": "MODIFY", "old_path": "32blit/graphics/mode7.cpp", "new_path": "32blit/graphics/mode7.cpp", "diff": "@@ -34,7 +34,7 @@ namespace blit {\nVec2 v(w - pos);\nv.normalize();\nVec2 f(0, -1);\n- f *= Mat3::rotation(angle);\n+ f *= Mat3::rotation(-angle);\nfloat wd = (w - pos).length();\nf...
C
MIT License
pimoroni/32blit-beta
Updated examples which use Mat3::rotation Co-authored-by: Daft Freak <charlie@daft.games>
510,647
27.08.2022 12:16:07
-3,600
4210173dd9d8d393ab9b91fd91e4b91c14eb9419
Fixed code to avoid using arbitrary negative signs. Mode7 now accepts an ACW angle.
[ { "change_type": "MODIFY", "old_path": "32blit/graphics/mode7.cpp", "new_path": "32blit/graphics/mode7.cpp", "diff": "@@ -34,7 +34,7 @@ namespace blit {\nVec2 v(w - pos);\nv.normalize();\nVec2 f(0, -1);\n- f *= Mat3::rotation(-angle);\n+ f *= Mat3::rotation(angle);\nfloat wd = (w - pos).length();\nf...
C
MIT License
pimoroni/32blit-beta
Fixed code to avoid using arbitrary negative signs. Mode7 now accepts an ACW angle.
510,647
27.08.2022 13:34:48
-3,600
26562607ffa35db23674e80620eecb78beea17ca
Added some sort of scaling to trees.
[ { "change_type": "MODIFY", "old_path": "examples/flight/flight.cpp", "new_path": "examples/flight/flight.cpp", "diff": "@@ -176,7 +176,11 @@ void render(uint32_t time_ms) {\nRect sr(120, 112, 8, 16);\n- screen.blit(sprites, sr, o.vs - Point(4, 15));\n+ float scale = 200.0f / o.dist;\n+\n+ Rect dr(o....
C
MIT License
pimoroni/32blit-beta
Added some sort of scaling to trees.
510,647
27.08.2022 13:55:26
-3,600
91f794b1dc8b9234d058a81a366b510d401b75b8
Water images now fill the screen below the horizon. Improved the controls for joystick and D-pad.
[ { "change_type": "MODIFY", "old_path": "examples/flight/flight.cpp", "new_path": "examples/flight/flight.cpp", "diff": "@@ -154,7 +154,11 @@ void render(uint32_t time_ms) {\nscreen.alpha = 55;\n- screen.blit(water, Rect(0, 0, 64, 64), Point(0, 50));\n+ for (uint8_t y = 50; y < 120; y += 64) {\n+ for...
C
MIT License
pimoroni/32blit-beta
Water images now fill the screen below the horizon. Improved the controls for joystick and D-pad.
163,176
21.09.2019 00:54:49
-28,800
3c5856cb2fd670a90ffda601777d9675b216906e
Setup demo app of vueopenlayer
[ { "change_type": "MODIFY", "old_path": "frontend/package-lock.json", "new_path": "frontend/package-lock.json", "diff": "\"version\": \"7.6.0\",\n\"resolved\": \"https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.6.0.tgz\",\n\"integrity\": \"sha512-zbPQzlbyJab2xCYb6VaESn8Tk/XiVpQJU...
Python
MIT License
disfactory/disfactory
Setup demo app of vueopenlayer
163,176
21.09.2019 15:48:08
-28,800
5695abe390c42c8552daf8a081abdfb2b0557cf7
Use openlayer directly instead of vuelayer
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/jsconfig.json", "diff": "+{\n+ \"compilerOptions\": {\n+ \"checkJs\": true,\n+ // Point to the JSDoc typed sources when using modules from the ol package\n+ \"baseUrl\": \"./\",\n+ \"paths\": {\n+ \"ol\": [\"node_modules/ol/src\"],\n+ \...
Python
MIT License
disfactory/disfactory
Use openlayer directly instead of vuelayer
163,172
26.09.2019 23:08:46
-28,800
9f391b7af71eea8e60689425052a8f4c846df55d
start project, switch over to docker and postgresql
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/Dockerfile", "diff": "+# Pull base image\n+FROM python:3.7-slim\n+\n+# Set environment variables\n+ENV PYTHONDONTWRITEBYTECODE 1\n+ENV PYTHONUNBUFFERED 1\n+\n+# Set work directory\n+WORKDIR /Disfactory\n+\n+# Install dependencies\n+COPY ...
Python
MIT License
disfactory/disfactory
start project, switch over to docker and postgresql
163,176
28.09.2019 15:43:44
-28,800
ee29c526e985a8e769c8486686be4cec9c95282a
Add crossOrigin option to load tile correctly
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/OSM.vue", "new_path": "frontend/src/components/OSM.vue", "diff": "@@ -41,6 +41,7 @@ export default class OSM extends Vue {\nresolutions: resolutions,\nmatrixIds: matrixIds\n}),\n+ crossOrigin: 'Anonymous',\nstyle: \"default\",\nwrapX: t...
Python
MIT License
disfactory/disfactory
Add crossOrigin option to load tile correctly