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 |
|---|---|---|---|---|---|---|---|---|---|
429,508 | 03.04.2022 19:08:09 | -28,800 | bf24091672c87a709b21275442b06cbeff9c3b6e | fix: fix initial render issue, input closes on hidden day | [
{
"change_type": "MODIFY",
"old_path": "src/__demo__/demo-app.ts",
"new_path": "src/__demo__/demo-app.ts",
"diff": "@@ -17,6 +17,7 @@ import type { CustomEventDetail } from '../typings.js';\n@customElement('demo-app')\nexport class DemoApp extends RootElement {\n+ @state() _editable = false;\n@state... | TypeScript | MIT License | motss/app-datepicker | fix: fix initial render issue, input closes on hidden day
Signed-off-by: Rong Sen Ng (motss) <wes.ngrongsen@gmail.com> |
429,508 | 03.04.2022 22:03:10 | -28,800 | 4f659f4772a195fb0728933dd67fb5c1d5dc6a42 | chore(release): 6.0.0-rc.30 :tada: | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file. See [standa\n+# [6.0.0-rc.30](https://github.com/motss/app-datepicker/compare/v6.0.0-rc.29...v6.0.0-rc.30) (2022-04-03)\n+... | TypeScript | MIT License | motss/app-datepicker | chore(release): 6.0.0-rc.30 :tada: |
429,508 | 09.04.2022 21:52:12 | -28,800 | d370cf21bb7b8e21a15e6b9a5bd3b9995215110a | docs: update installation note, update lockfile | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -84,7 +84,7 @@ The following are the list of tools used that makes it shine:\n- NPM\n```sh\n- $ npm i app-datepicker\n+ $ npm i app-datepicker@next\n```\n- Alternatively, it can be downloaded from any of the fol... | TypeScript | MIT License | motss/app-datepicker | docs: update installation note, update lockfile
Signed-off-by: Rong Sen Ng (motss) <wes.ngrongsen@gmail.com> |
429,508 | 30.04.2022 00:05:28 | -28,800 | 847626ed7713b196e2da2089aa2be3a3ca14f59c | refactor: add missing .js extension | [
{
"change_type": "MODIFY",
"old_path": "src/year-grid-button/year-grid-button.ts",
"new_path": "src/year-grid-button/year-grid-button.ts",
"diff": "import { ButtonBase } from '@material/mwc-button/mwc-button-base.js';\n-import { styles } from '@material/mwc-button/styles.css';\n+import { styles } fr... | TypeScript | MIT License | motss/app-datepicker | refactor: add missing .js extension
Signed-off-by: Rong Sen Ng (motss) <wes.ngrongsen@gmail.com> |
429,508 | 19.11.2022 17:40:36 | -28,800 | bee66f7d5d7ca748158715c73d36a196208bbe57 | chore(release): 6.0.0-rc.31 :tada: | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -4,6 +4,28 @@ All notable changes to this project will be documented in this file. See [standa\n+# [6.0.0-rc.31](https://github.com/motss/app-datepicker/compare/v6.0.0-rc.30...v6.0.0-rc.31) (2022-11-19)\n+... | TypeScript | MIT License | motss/app-datepicker | chore(release): 6.0.0-rc.31 :tada: |
429,508 | 19.11.2022 18:21:16 | -28,800 | a6aee05e8f076ba0ffef1f557e59ff1c336d1f3c | fix: class fields fix | [
{
"change_type": "MODIFY",
"old_path": "package-lock.json",
"new_path": "package-lock.json",
"diff": "\"@web/test-runner-playwright\": \"^0.9.0\",\n\"eslint-plugin-lit\": \"^1.6.1\",\n\"eslint-plugin-lit-a11y\": \"^2.3.0\",\n- \"hanbi\": \"^1.0.1\"\n+ \"hanbi\": \"^1.0.1\",\n+ \"typescript\": \"^4.9... | TypeScript | MIT License | motss/app-datepicker | fix: class fields fix (#216)
Signed-off-by: Rong Sen Ng (motss) <wes.ngrongsen@gmail.com> |
429,508 | 19.11.2022 18:22:07 | -28,800 | e04866a40f7e14b702e59e74055cdb1766640e88 | chore(release): 6.0.0-rc.32 :tada: | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. See [standa\n+# [6.0.0-rc.32](https://github.com/motss/app-datepicker/compare/v6.0.0-rc.31...v6.0.0-rc.32) (2022-11-19)\n+... | TypeScript | MIT License | motss/app-datepicker | chore(release): 6.0.0-rc.32 :tada: |
510,640 | 03.10.2019 16:23:40 | -3,600 | 186fa685c95f72b4203f0bacff5e0ceb856e18ce | More README, better Makefiles | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Makefile",
"new_path": "32blit-sdl/Makefile",
"diff": "@@ -50,7 +50,7 @@ export BOILERPLATE_HPP\nPROJECTS := $(wildcard $(PROJECT_DIR)/*)\nPROJECT := $(PROJECT_DIR)/$(NAME)\n-LIB32BLIT := $(32BLIT)/build.testbed\n+LIB32BLIT := $(32BLIT)/build.32blit... | C | MIT License | pimoroni/32blit-beta | More README, better Makefiles |
510,640 | 03.10.2019 16:39:21 | -3,600 | e981ee914a106a8d9b70fcbcfe81414761ce4158 | Home+Menu enters shipping mode | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/main.c",
"new_path": "32blit-stm32/Src/main.c",
"diff": "@@ -446,10 +446,6 @@ void process_input() {\n// Tie backlight on/off to button X\n// HAL_GPIO_WritePin(GPIOE, GPIO_PIN_1, HAL_GPIO_ReadPin(GPIOD, GPIO_PIN_0));\n- // Tie shipping mode en... | C | MIT License | pimoroni/32blit-beta | Home+Menu enters shipping mode |
510,640 | 27.11.2019 13:30:49 | 0 | 658cc52912dfe47f725b0be45b71933c4f1c48b3 | Add asset builder tool | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "tools/asset-builder",
"diff": "+#!/usr/bin/env python3\n+\n+\"\"\"\n+32blit asset file format (extension always .blit)\n+\n+12 byte common header\n+\n+- 8: Type of file identifier (\"SPRITE \", \"MAP \", \"SONG \", \"SFX \")\n+- 4: Total file si... | C | MIT License | pimoroni/32blit-beta | Add asset builder tool |
510,640 | 27.11.2019 13:49:05 | 0 | 6b3db84db6d89449fcf65fb69d8233bd612b6a09 | Linting & output fix | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "tools/README.md",
"diff": "+# Tools\n+\n+## Asset Builder\n+\n+The `asset-builder` tool is intended to be a tool for packing 32blit assets into byte-arrays, includes, or data files for use in code.\n+\n+Presently it supports only sprite packing,... | C | MIT License | pimoroni/32blit-beta | Linting & output fix |
510,640 | 27.11.2019 14:13:55 | 0 | ab26c35c3028c13ff2972796e768c3504a1dcbb9 | Remove irrelevant rgb5x5 test code | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/main.c",
"new_path": "32blit-stm32/Src/main.c",
"diff": "#include \"helpers.h\"\n#include \"msa301.h\"\n#include \"bq24295.h\"\n-#include \"rgb5x5.h\"\n#include \"32blit.hpp\"\n#include \"graphics/color.hpp\"\n#ifdef BLIT_ENABLE_SD\n@@ -190,7 ... | C | MIT License | pimoroni/32blit-beta | Remove irrelevant rgb5x5 test code |
510,640 | 27.11.2019 14:18:52 | 0 | aca5cb043359808e4ca86f79a622fb7a5191a409 | Support reboot into DFU mode | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/main.c",
"new_path": "32blit-stm32/Src/main.c",
"diff": "@@ -82,6 +82,15 @@ void set_screen_mode(blit::screen_mode new_mode) {\n}\n}\n+void DFUBoot(void)\n+{\n+ *((uint32_t *)0x2001FFFC) = 0xCAFEBABE; // Special Key to End-of-RAM\n+\n+ SCB_Cle... | C | MIT License | pimoroni/32blit-beta | Support reboot into DFU mode |
510,640 | 27.11.2019 15:52:31 | 0 | a1180d9ce71c54f96935e65f94d6bc84f550c0e8 | Port to new API for | [
{
"change_type": "MODIFY",
"old_path": "examples/fire/fire.cpp",
"new_path": "examples/fire/fire.cpp",
"diff": "#include \"fire.hpp\"\n-using namespace engine;\n-\n-using namespace graphics;\n+using namespace blit;\nuint8_t logo[16][16] = {\n{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n@@ -40,... | C | MIT License | pimoroni/32blit-beta | Port to new API for #6 |
510,640 | 27.11.2019 16:02:14 | 0 | 7bb6f7db1f2c746c3125cee978b422647349a88b | Port flight to new API for | [
{
"change_type": "MODIFY",
"old_path": "examples/flight/flight.cpp",
"new_path": "examples/flight/flight.cpp",
"diff": "#include \"flight.hpp\"\n-using namespace engine;\n-using namespace graphics;\n+using namespace blit;\nuint8_t logo[16][16] = {\n{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n... | C | MIT License | pimoroni/32blit-beta | Port flight to new API for #6 |
510,640 | 27.11.2019 16:03:40 | 0 | 0bedaa2c5eb9c5b47deb73e5fca05633c617a845 | Port matrix-test to new API for | [
{
"change_type": "MODIFY",
"old_path": "examples/matrix-test/matrix-test.cpp",
"new_path": "examples/matrix-test/matrix-test.cpp",
"diff": "#include \"matrix-test.hpp\"\n-using namespace engine;\n-using namespace graphics;\n+using namespace blit;\nconst uint16_t screen_width = 320;\nconst uint16_t s... | C | MIT License | pimoroni/32blit-beta | Port matrix-test to new API for #6 |
510,640 | 27.11.2019 16:12:15 | 0 | 1f97e43933047d4d2a3d3e677e0695f43daaff6f | Port platformer to new API for | [
{
"change_type": "MODIFY",
"old_path": "examples/platformer/platformer.cpp",
"new_path": "examples/platformer/platformer.cpp",
"diff": "#include \"platformer.hpp\"\n-using namespace graphics;\n-using namespace engine;\n-using namespace input;\n+using namespace blit;\nsize screen_size(160, 120);\n@@ ... | C | MIT License | pimoroni/32blit-beta | Port platformer to new API for #6 |
510,640 | 27.11.2019 16:15:19 | 0 | 96212f2714ca5b980a8241e7d29d265f6d7d30fb | Port sprite-test to new API for | [
{
"change_type": "MODIFY",
"old_path": "examples/sprite-test/sprite-test.cpp",
"new_path": "examples/sprite-test/sprite-test.cpp",
"diff": "#include \"sprite-test.hpp\"\n-using namespace engine;\n-using namespace graphics;\n+using namespace blit;\nconst uint16_t screen_width = 320;\nconst uint16_t s... | C | MIT License | pimoroni/32blit-beta | Port sprite-test to new API for #6 |
510,640 | 27.11.2019 16:16:49 | 0 | 6ba18f2dcf0cc8ae71af689abb5d987c5a575d2f | Port logo to new API for | [
{
"change_type": "MODIFY",
"old_path": "examples/logo/logo.cpp",
"new_path": "examples/logo/logo.cpp",
"diff": "#include \"logo.hpp\"\n-using namespace graphics;\n-using namespace engine;\n-using namespace input;\n+using namespace blit;\nconst size screen_size(160, 120);\n@@ -19,8 +17,8 @@ uint8_t _... | C | MIT License | pimoroni/32blit-beta | Port logo to new API for #6 |
510,640 | 27.11.2019 16:20:05 | 0 | e08bde9aa35a59e9b432fd97e7ae76da0ebe6b86 | Port particle to new API for | [
{
"change_type": "MODIFY",
"old_path": "examples/particle/particle.cpp",
"new_path": "examples/particle/particle.cpp",
"diff": "#include \"particle.hpp\"\n-using namespace engine;\n-using namespace graphics;\n+using namespace blit;\n/* setup */\nvoid init() {\n- engine::set_screen_mode(screen_mode::... | C | MIT License | pimoroni/32blit-beta | Port particle to new API for #6 |
510,640 | 27.11.2019 16:38:57 | 0 | 17736e3ebadfbde446aa72f82141be2690acfc53 | Drop inline so tilemap_test will compile | [
{
"change_type": "MODIFY",
"old_path": "32blit/graphics/tilemap.cpp",
"new_path": "32blit/graphics/tilemap.cpp",
"diff": "@@ -46,7 +46,7 @@ namespace blit {\n* \\param[in] x\n* \\param[in] y\n*/\n- inline int32_t tilemap::offset(const int16_t &x, const int16_t &y) {\n+ int32_t tilemap::offset(const ... | C | MIT License | pimoroni/32blit-beta | Drop inline so tilemap_test will compile |
510,640 | 27.11.2019 16:39:11 | 0 | b69f6f0b44ac913053b406c7e538287f39ac204f | Port tilemap_test to new API for | [
{
"change_type": "MODIFY",
"old_path": "examples/tilemap_test/tilemap_test.cpp",
"new_path": "examples/tilemap_test/tilemap_test.cpp",
"diff": "#include \"tilemap_test.hpp\"\n-using namespace engine;\n-using namespace graphics;\n-\n-// define storage for the spritesheet\n-rgba __ss[(128 * 128) + (64... | C | MIT License | pimoroni/32blit-beta | Port tilemap_test to new API for #6 |
510,640 | 27.11.2019 17:03:33 | 0 | 291c4eafc56ad8263107336d598e78312f7544fb | Fix tilemap_test for | [
{
"change_type": "MODIFY",
"old_path": "examples/tilemap_test/tilemap_test.cpp",
"new_path": "examples/tilemap_test/tilemap_test.cpp",
"diff": "@@ -41,7 +41,8 @@ std::map<int, int> indexes = {\n{83, 8}\n};\n-tilemap world((uint8_t *)layer_world, nullptr, size(16, 8), fb.sprites);\n+// TODO: tilemap ... | C | MIT License | pimoroni/32blit-beta | Fix tilemap_test for #6 |
510,654 | 27.11.2019 19:42:46 | 0 | c97b140d7c1a56fabc91b439e2e330e8e60df726 | Remove window resize mutex
This is no longer needed as the code sections it protects now all
run on the same thread. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -43,7 +43,6 @@ std::map<int, int> keys = {\n};\nSDL_Thread *t_system_timer;\n-SDL_mutex *mutex_window_resize;\nstatic bool running = true;\nstatic bool recording = false;\n@@ -315,7 +314,6 @@... | C | MIT License | pimoroni/32blit-beta | Remove window resize mutex
This is no longer needed as the code sections it protects now all
run on the same thread. |
510,654 | 27.11.2019 19:52:25 | 0 | af9943b7d9ef349d2588f7ec5c7f4daa15f1377c | Refactor resize handling into a separate function | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -201,6 +201,53 @@ void virtual_analog(int x, int y) {\nblit::joystick = vec2(jx, jy);\n}\n+void resize_renderer() {\n+\n+ int sizeX, sizeY;\n+\n+ SDL_GetWindowSize(window, &sizeX, &sizeY);\n+... | C | MIT License | pimoroni/32blit-beta | Refactor resize handling into a separate function |
510,654 | 27.11.2019 19:53:17 | 0 | a3a8b0829a4845bf2d01ab7ec944ece84b7300de | Handle resize immediately
The renderer is now resized as soon as we receive the event. In
order to not cause flicker, resize_renderer no longer causes a
repaint. This is no longer necessary as we will receive a repaint
event within ~20ms anyway. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -52,9 +52,6 @@ int current_pixel_size = 4;\nint current_width = SYSTEM_WIDTH * current_pixel_size;\nint current_height = SYSTEM_HEIGHT * current_pixel_size;\n-static unsigned int need_resize ... | C | MIT License | pimoroni/32blit-beta | Handle resize immediately
The renderer is now resized as soon as we receive the event. In
order to not cause flicker, resize_renderer no longer causes a
repaint. This is no longer necessary as we will receive a repaint
event within ~20ms anyway. |
510,654 | 27.11.2019 21:00:29 | 0 | 91f0c2da4934b80193a801566c08b6ac3bed65fc | Switch to SDL_WaitEvent
Now that no work is done outside the main loop we can switch to
SDL_WaitEvent instead of SDL_PollEvent. This blocks until an event
is available instead of returning immediately when there are no
events. This means the main loop will not always use 100% CPU. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -305,7 +305,7 @@ int main(int argc, char *argv[]) {\nwhile (running) {\nSDL_Event event;\n- while (SDL_PollEvent(&event)) {\n+ while (SDL_WaitEvent(&event)) {\nif (event.type == SDL_QUIT) {\n... | C | MIT License | pimoroni/32blit-beta | Switch to SDL_WaitEvent
Now that no work is done outside the main loop we can switch to
SDL_WaitEvent instead of SDL_PollEvent. This blocks until an event
is available instead of returning immediately when there are no
events. This means the main loop will not always use 100% CPU. |
510,654 | 27.11.2019 21:14:06 | 0 | 35cda3c762e0e7eea77ea1c8c7248ae4914ccf4c | Refactor main loop back to using switch/case | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -302,21 +302,21 @@ int main(int argc, char *argv[]) {\nt_system_timer = SDL_CreateThread(system_timer, \"Run\", (void *)NULL);\n- while (running) {\nSDL_Event event;\n- while (SDL_WaitEvent(&... | C | MIT License | pimoroni/32blit-beta | Refactor main loop back to using switch/case |
510,654 | 27.11.2019 21:15:12 | 0 | f5b3b5ad8e7ff4453408526af04cf66d0225d3ce | Check for errors when exiting the main loop
If we didn't exit by setting running to false then we must have
exited due to SDL_WaitEvents returning an error. Print that error.
Then set running to false to ensure the thread quits. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -420,6 +420,10 @@ int main(int argc, char *argv[]) {\nbreak;\n}\n}\n+ if (running) {\n+ fprintf(stderr, \"Main loop exited with error: %s\\n\", SDL_GetError());\n+ running = false; // ensure ... | C | MIT License | pimoroni/32blit-beta | Check for errors when exiting the main loop
If we didn't exit by setting running to false then we must have
exited due to SDL_WaitEvents returning an error. Print that error.
Then set running to false to ensure the thread quits. |
510,654 | 28.11.2019 03:27:58 | 0 | 5065970d32bb35b4c4be1d7aefdba4dcb42883c7 | Shadow input so it cannot change during user code | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -44,6 +44,10 @@ std::map<int, int> keys = {\n{SDLK_2, button::MENU}\n};\n+Uint32 shadow_buttons = 0;\n+vec3 shadow_tilt = {0, 0, 0};\n+vec2 shadow_joystick = {0, 0};\n+\nSDL_Thread *t_system_... | C | MIT License | pimoroni/32blit-beta | Shadow input so it cannot change during user code |
510,654 | 28.11.2019 03:43:40 | 0 | 83401a330ec11f07ace0d893874c6cd3f7619081 | Add a mutex for shadow input
This probably isn't needed for buttons as we only change one bit
at a time. The analog inputs are a different matter, and while I
can't reproduce any corruption, I think this is safer. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -47,6 +47,7 @@ std::map<int, int> keys = {\nUint32 shadow_buttons = 0;\nvec3 shadow_tilt = {0, 0, 0};\nvec2 shadow_joystick = {0, 0};\n+SDL_mutex *shadow_mutex = SDL_CreateMutex();\nSDL_Threa... | C | MIT License | pimoroni/32blit-beta | Add a mutex for shadow input
This probably isn't needed for buttons as we only change one bit
at a time. The analog inputs are a different matter, and while I
can't reproduce any corruption, I think this is safer. |
510,654 | 28.11.2019 03:46:31 | 0 | b4af0c4eb5ccb0cb7ac260434c3a6b33df94fa55 | Don't run the tick with the mutex locked | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -179,8 +179,8 @@ static int system_loop(void *ptr) {\nblit::buttons = shadow_buttons;\nblit::tilt = shadow_tilt;\nblit::joystick = shadow_joystick;\n- blit::tick(::now());\nSDL_UnlockMutex(sh... | C | MIT License | pimoroni/32blit-beta | Don't run the tick with the mutex locked |
510,640 | 28.11.2019 16:16:38 | 0 | d8f7d9797b9278b81fc8a009f327501f1d05c33d | Vibration motor up and running | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Inc/main.h",
"new_path": "32blit-stm32/Inc/main.h",
"diff": "@@ -135,8 +135,8 @@ void Error_Handler(void);\n#define VIBE_EN_Pin GPIO_PIN_6\n#define VIBE_EN_GPIO_Port GPIOB\n/* USER CODE BEGIN Private defines */\n-#define HIGH(PORT, PIN) HAL_GPIO_W... | C | MIT License | pimoroni/32blit-beta | Vibration motor up and running |
510,654 | 29.11.2019 09:31:59 | 0 | 781bb0816e9dcecd06edc22caf85b5be489c405b | Clean up timer loop | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -151,12 +151,11 @@ static int system_timer(void *ptr) {\nSDL_Event event_frozen = {.type = USEREVENT_FROZEN};\nwhile (SDL_SemWaitTimeout(system_timer_stop, 20)) {\n- int val = SDL_SemValue(sy... | C | MIT License | pimoroni/32blit-beta | Clean up timer loop |
510,654 | 29.11.2019 10:36:45 | 0 | 1e72009776e36815fbfc1ac2641c9be7110f4dc6 | Don't use a wildcard in Makefile if you are going to overwrite it | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Makefile",
"new_path": "32blit-sdl/Makefile",
"diff": "@@ -60,7 +60,7 @@ OUTPUT_NAME = $(shell basename $(PROJECT))\nSDL_LIBS = `sdl2-config --libs`\n# Glom all .cpp files from the testbed\n-TESTBED_SRC_FILES := $(wildcard $(TESTBED)/*.cpp)\n+TESTBE... | C | MIT License | pimoroni/32blit-beta | Don't use a wildcard in Makefile if you are going to overwrite it |
510,654 | 29.11.2019 10:45:50 | 0 | 68cb0e4e68da87f87a82c5ef589733346c25b8bf | Testbed source should also rely on headers | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Makefile",
"new_path": "32blit-sdl/Makefile",
"diff": "@@ -128,7 +128,7 @@ $(PROJECT_BUILD_DIR)/$(OUTPUT_NAME): $(ALL_OBJ_FILES)\n$(PROJECT_BUILD_DIR)/%.o: $(PROJECT)/%.cpp $(PROJECT)/%.hpp\n$(CXX) $(CPPFLAGS) $(CXXFLAGS) -fPIC -c -o $@ $<\n-$(TESTB... | C | MIT License | pimoroni/32blit-beta | Testbed source should also rely on headers |
510,654 | 28.11.2019 08:46:22 | 0 | d365ef75093a0d4f0dcbd67773a2e4f644144562 | Add joypad support with SDL_GameController
The button mapping maps by name, not layout. That means that A and
B are swapped, and X and Y are swapped.
The tilt only sets X and Y axis. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -44,6 +44,24 @@ std::map<int, int> keys = {\n{SDLK_2, button::MENU}\n};\n+std::map<int, int> gcbuttons = {\n+ // dpad\n+ {SDL_CONTROLLER_BUTTON_DPAD_DOWN, button::DPAD_DOWN},\n+ {SDL_CONTROLL... | C | MIT License | pimoroni/32blit-beta | Add joypad support with SDL_GameController
The button mapping maps by name, not layout. That means that A and
B are swapped, and X and Y are swapped.
The tilt only sets X and Y axis. |
510,654 | 29.11.2019 13:37:30 | 0 | f9bc1002a01368a5e4fd0d4f317ec09ab36f8c80 | Call resize_renderer instead of duplicating code | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -352,8 +352,7 @@ int main(int argc, char *argv[]) {\n//textureBuffer = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, SYSTEM_WIDTH, SYSTEM_HEIGHT);\n- __fb_te... | C | MIT License | pimoroni/32blit-beta | Call resize_renderer instead of duplicating code |
510,654 | 29.11.2019 13:39:22 | 0 | 1fe17675cef14e46b4adf8b69a4b3e0decfd1248 | Put the variable with the function that uses it | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -115,7 +115,6 @@ typedef struct vector2d {\nvector2d mouse;\nuint8_t mouse_button = 0;\n-std::chrono::steady_clock::time_point start;\nvoid debug(std::string message) {\n//OutputDebugStringA(... | C | MIT License | pimoroni/32blit-beta | Put the variable with the function that uses it |
510,654 | 29.11.2019 16:28:20 | 0 | 5b7ff3e8620da1e0a6c1c003d3dbaa27d451a62e | Add joystick button to keyboard and joypad map | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -41,7 +41,8 @@ std::map<int, int> keys = {\n// system buttons\n{SDLK_1, button::HOME},\n- {SDLK_2, button::MENU}\n+ {SDLK_2, button::MENU},\n+ {SDLK_3, button::JOYSTICK},\n};\nstd::map<int, i... | C | MIT License | pimoroni/32blit-beta | Add joystick button to keyboard and joypad map |
510,654 | 29.11.2019 16:32:29 | 0 | 5de8c4b3aa75c5ae5a5c0fe81ae33a0df8ba75aa | Use the full namespace when declaring button map | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "std::map<int, int> keys = {\n// arrow keys\n- {SDLK_DOWN, button::DPAD_DOWN},\n- {SDLK_UP, button::DPAD_UP},\n- {SDLK_LEFT, button::DPAD_LEFT},\n- {SDLK_RIGHT, button::DPAD_RIGHT},\n+ {SDLK_DOWN... | C | MIT License | pimoroni/32blit-beta | Use the full namespace when declaring button map |
510,654 | 29.11.2019 16:44:36 | 0 | ad63bd892aa4aead093be017e6ba5152d4aafd12 | Don't resize the window
Should have been removed in an earlier patch. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -302,12 +302,6 @@ void resize_renderer(int sizeX, int sizeY) {\nstd::cout << \"Textured destroyed\" << std::endl;\n- current_width = sizeX;\n- current_height = sizeY;\n- SDL_SetWindowSize(win... | C | MIT License | pimoroni/32blit-beta | Don't resize the window
Should have been removed in an earlier patch. |
510,654 | 29.11.2019 17:15:28 | 0 | 22392ee61009a39bd65c9fb8bf08aeebd21c17c1 | Remove some code that doesn't do anything | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -85,7 +85,6 @@ uint32_t ticks_passed;\nuint32_t ticks_last_update;\nSDL_Window* window = NULL;\n-SDL_Surface* screenSurface = NULL;\nSDL_Renderer* renderer;\nSDL_Texture* __fb_texture_RGB24;\... | C | MIT License | pimoroni/32blit-beta | Remove some code that doesn't do anything |
510,654 | 29.11.2019 17:24:23 | 0 | 2841c761a7a37ab4e03ea74ee91dc393f554de63 | Notify that we are done with the framebuffers ASAP | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -138,6 +138,8 @@ void system_redraw(System *sys) {\nSDL_RenderCopy(renderer, __ltdc_texture_RGB565, NULL, &renderer_dest);\n}\n+ sys->notify_redraw();\n+\nSDL_RenderPresent(renderer);\n#ifnde... | C | MIT License | pimoroni/32blit-beta | Notify that we are done with the framebuffers ASAP |
510,654 | 29.11.2019 17:25:09 | 0 | eb27cfeb6781dcbf822c5075af2179e59125fe20 | This should be Uint32 | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/System.cpp",
"new_path": "32blit-sdl/System.cpp",
"diff": "@@ -137,7 +137,7 @@ int System::update_thread() {\nreturn 0;\n}\n-int System::mode() {\n+Uint32 System::mode() {\nif (_mode == blit::screen_mode::lores) {\nreturn SDL_PIXELFORMAT_RGB24;\n}\n... | C | MIT License | pimoroni/32blit-beta | This should be Uint32 |
510,654 | 29.11.2019 18:53:18 | 0 | 885e88c327c90455c388f5455e977d17bd9cd4c9 | Refactor recorder to read back from the renderer
This allows the recorder to continue even if the screen mode
changes. It also removes the need to access blit framebuffer
directly. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -90,6 +90,10 @@ SDL_Renderer* renderer;\nSDL_Texture* __fb_texture_RGB24;\nSDL_Texture* __ltdc_texture_RGB565;\n+#ifndef NO_FFMPEG_CAPTURE\n+SDL_Texture* recorder_target;\n+uint8_t recorder_b... | C | MIT License | pimoroni/32blit-beta | Refactor recorder to read back from the renderer
This allows the recorder to continue even if the screen mode
changes. It also removes the need to access blit framebuffer
directly. |
510,654 | 30.11.2019 10:28:01 | 0 | 20aae77a61cd6a2de9b9348258a96452452d7409 | Move input mapping into a new file Input.cpp
This removes another dependency on blit API from Main.cpp, gets rid
of a couple more global variables, and opens a path to doing input
remapping. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "32blit-sdl/Input.cpp",
"diff": "+#include <SDL.h>\n+\n+#include \"Input.hpp\"\n+#include \"engine/input.hpp\"\n+\n+std::map<int, int> Input::keys = {\n+ // arrow keys\n+ {SDLK_DOWN, blit::button::DPAD_DOWN},\n+ {SDLK_UP, blit::button::DPAD_UP},\... | C | MIT License | pimoroni/32blit-beta | Move input mapping into a new file Input.cpp
This removes another dependency on blit API from Main.cpp, gets rid
of a couple more global variables, and opens a path to doing input
remapping. |
510,654 | 30.11.2019 10:43:02 | 0 | 53ad26f7368e893b4c364c7a285f928f66076a39 | Add helpers to look up input mappings | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Input.cpp",
"new_path": "32blit-sdl/Input.cpp",
"diff": "@@ -46,3 +46,15 @@ std::map<int, int> Input::buttons = {\n{SDL_CONTROLLER_BUTTON_START, blit::button::MENU},\n{SDL_CONTROLLER_BUTTON_LEFTSTICK, blit::button::JOYSTICK},\n};\n+\n+int Input::fin... | C | MIT License | pimoroni/32blit-beta | Add helpers to look up input mappings |
510,654 | 30.11.2019 11:58:42 | 0 | ffd1b71ff1df1cc15813c8cfda059c61cbe79872 | Move all System input handling code to Input.cpp | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Input.cpp",
"new_path": "32blit-sdl/Input.cpp",
"diff": "#include \"Input.hpp\"\n#include \"engine/input.hpp\"\n+#include \"System.hpp\"\nstd::map<int, int> Input::keys = {\n// arrow keys\n@@ -58,3 +59,90 @@ int Input::find_button(int button) {\nif ... | C | MIT License | pimoroni/32blit-beta | Move all System input handling code to Input.cpp |
510,654 | 30.11.2019 12:09:53 | 0 | 8812a3a853911540a5d4f16664f15e5bac490550 | Refactor all renderer code to Renderer.cpp
This allows the removal of the final global variables from Main.cpp.
I'm not sure the exposed API of Renderer is quite right. It may be
difficult to add a GUI overlay in its current state. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "#include \"Input.hpp\"\n#include \"System.hpp\"\n-\n-#include \"engine/input.hpp\"\n+#include \"Renderer.hpp\"\n#define WINDOW_TITLE \"TinyDebug SDL\"\n#define SYSTEM_WIDTH 160\n#define SYSTEM_H... | C | MIT License | pimoroni/32blit-beta | Refactor all renderer code to Renderer.cpp
This allows the removal of the final global variables from Main.cpp.
I'm not sure the exposed API of Renderer is quite right. It may be
difficult to add a GUI overlay in its current state. |
510,654 | 30.11.2019 12:55:13 | 0 | 796cdc333b7df3f017051334c3a955a3fc9e088b | Fix video recording
The Renderer now has a recording API. Call start_recording with a
buffer of size 320x240x3 bytes. It will be filled every time present
is called. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "@@ -56,8 +56,7 @@ int main(int argc, char *argv[]) {\n#ifndef NO_FFMPEG_CAPTURE\nstatic bool recording = false;\nstatic unsigned int last_record_startstop = 0;\n- SDL_Texture* recorder_target;\n... | C | MIT License | pimoroni/32blit-beta | Fix video recording
The Renderer now has a recording API. Call start_recording with a
buffer of size 320x240x3 bytes. It will be filled every time present
is called. |
510,654 | 30.11.2019 13:32:25 | 0 | 0459fc7378be8b6732ba7d26fcd817eed00ef05e | Remove format argument from open_stream
The recording format is now always RGB24. Removing it from the
arguments means we don't need to include ffmpeg headers in Main.cpp.
Also, re-order the includes to put them in logical order. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "#if defined(_WIN32) && !defined(WIN32)\n#define WIN32\n#endif\n-#ifndef NO_FFMPEG_CAPTURE\n-#include \"VideoCapture.hpp\"\n-#endif\n+\n#include <SDL.h>\n#include <random>\n#include <cmath>\n#inc... | C | MIT License | pimoroni/32blit-beta | Remove format argument from open_stream
The recording format is now always RGB24. Removing it from the
arguments means we don't need to include ffmpeg headers in Main.cpp.
Also, re-order the includes to put them in logical order. |
510,654 | 30.11.2019 14:44:52 | 0 | 35b93414f1c284ad954caa6094e04cd5d2361078 | Fix a typo in ffmpeg instructions | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -59,7 +59,7 @@ DISPLAY=:0.0 ../build/project/<project_name>\nThen build your 32blit project with:\n```\n-make ../example/<project_name> ENABLE_FFMPG=true FFMPEG=../FFmpeg-n4.1.4/build\n+make ../example/<project_... | C | MIT License | pimoroni/32blit-beta | Fix a typo in ffmpeg instructions |
510,654 | 01.12.2019 15:23:17 | 0 | 20a4318a90d65210b9771d97dc7ecb8a31e103d7 | Use dependency injection to connect the Input with the System
This just saves passing System pointers around. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Input.cpp",
"new_path": "32blit-sdl/Input.cpp",
"diff": "@@ -60,7 +60,7 @@ int Input::find_button(int button) {\nelse return iter->second;\n}\n-Input::Input(SDL_Window *window) {\n+Input::Input(SDL_Window *window, System *target) : target(target) {\... | C | MIT License | pimoroni/32blit-beta | Use dependency injection to connect the Input with the System
This just saves passing System pointers around. |
510,654 | 01.12.2019 17:41:53 | 0 | 6ea343d2daf9fed7cb9a7018b6bf888a777306be | Rename VideoCapture -> VideoCaptureFfmpeg | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "#include \"Renderer.hpp\"\n#ifndef NO_FFMPEG_CAPTURE\n-#include \"VideoCapture.hpp\"\n+#include \"VideoCaptureFfmpeg.hpp\"\n#endif\n#define WINDOW_TITLE \"TinyDebug SDL\"\n@@ -128,14 +128,14 @@ ... | C | MIT License | pimoroni/32blit-beta | Rename VideoCapture -> VideoCaptureFfmpeg |
510,640 | 02.12.2019 16:07:02 | 0 | b04781b58d666ec1da5094cabfe91251e4eef428 | DFU builder tool | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "tools/dfu",
"diff": "+#!/usr/bin/env python3\n+\n+import argparse\n+import sys\n+import zlib\n+from bitstring import BitArray\n+from construct import this, len_, Struct, Padded, CString, Rebuild, Computed, RawCopy, Checksum, Hex, Bytes, Int8ul, ... | C | MIT License | pimoroni/32blit-beta | DFU builder tool |
510,640 | 02.12.2019 16:14:31 | 0 | b2e4c16830fa05b030c29ebf791b02e9c58eed5f | Enable LED control from user code | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Inc/32blit.h",
"new_path": "32blit-stm32/Inc/32blit.h",
"diff": "@@ -8,6 +8,7 @@ extern void blit_swap();\nextern void blit_flip();\nextern void set_screen_mode(blit::screen_mode new_mode);\nextern void blit_clear_framebuffer();\n+extern void blit... | C | MIT License | pimoroni/32blit-beta | Enable LED control from user code |
510,654 | 01.12.2019 18:29:45 | 0 | e4de52c3b0d4c113779eba8f3e7e6aea49603fd9 | Add back VideoCapture, but as a class
For now this just calls the old code renamed in the revious commit.
As such it is most definitely not safe to make two VideoCapture
objects at the same time. | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "#include \"Renderer.hpp\"\n#ifndef NO_FFMPEG_CAPTURE\n-#include \"VideoCaptureFfmpeg.hpp\"\n+#include \"VideoCapture.hpp\"\n#endif\n#define WINDOW_TITLE \"TinyDebug SDL\"\n-inline std::tm localt... | C | MIT License | pimoroni/32blit-beta | Add back VideoCapture, but as a class
For now this just calls the old code renamed in the revious commit.
As such it is most definitely not safe to make two VideoCapture
objects at the same time. |
510,654 | 01.12.2019 19:14:14 | 0 | a6361335c1b68f9b18b9df9fcb21d62f7f39d18c | Remove unused includes from Main.cpp | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Main.cpp",
"new_path": "32blit-sdl/Main.cpp",
"diff": "#endif\n#include <SDL.h>\n-#include <random>\n-#include <cmath>\n#include <iostream>\n-#include <chrono>\n-#include <ctime>\n-#include <string>\n-#include <sstream>\n-#include <map>\n#include \"... | C | MIT License | pimoroni/32blit-beta | Remove unused includes from Main.cpp |
510,640 | 02.12.2019 17:03:40 | 0 | 332c026019b8e9654bd86d2f3c80d71f18853249 | Friendlier DFU tool errors | [
{
"change_type": "MODIFY",
"old_path": "tools/dfu",
"new_path": "tools/dfu",
"diff": "import argparse\nimport sys\n+import pathlib\nimport zlib\n+\n+import construct\n+\nfrom bitstring import BitArray\nfrom construct import this, len_, Struct, Padded, CString, Rebuild, Computed, RawCopy, Checksum, H... | C | MIT License | pimoroni/32blit-beta | Friendlier DFU tool errors |
510,640 | 02.12.2019 17:14:43 | 0 | 9f5e9f0724e7958f22e6bd594ca254f15ef977f0 | Add verbose build output | [
{
"change_type": "MODIFY",
"old_path": "tools/dfu",
"new_path": "tools/dfu",
"diff": "@@ -107,6 +107,25 @@ DFU = Struct(\n)\n+def display_dfu_info(parsed):\n+ print(f'''\n+Device: {parsed.fields.value.bcdDevice}\n+Target: {parsed.fields.value.idProduct:04x}:{parsed.fields.value.idVendor:04x}\n+Size:... | C | MIT License | pimoroni/32blit-beta | Add verbose build output |
510,640 | 02.12.2019 22:24:36 | 0 | ae3b4cf152d02e1687612101428df7e00e4888ed | Simplify code paths, add comments | [
{
"change_type": "MODIFY",
"old_path": "tools/asset-builder",
"new_path": "tools/asset-builder",
"diff": "@@ -188,8 +188,13 @@ if __name__ == '__main__':\n# either we need a hard limit on the size of assets built in RGBA or RGB native formats (24/32bpp)\n# or drop output format altogether.\nparser_s... | C | MIT License | pimoroni/32blit-beta | Simplify code paths, add comments |
510,640 | 03.12.2019 00:22:01 | 0 | 5d096474d07ca4e04914330a4c56430538792cbd | Correct joystick x axis | [
{
"change_type": "MODIFY",
"old_path": "examples/geometry/geometry.cpp",
"new_path": "examples/geometry/geometry.cpp",
"diff": "@@ -277,7 +277,7 @@ void update(uint32_t time) {\nif (pressed(button::DPAD_UP)) { movement.y -= 0.03f; }\nif (pressed(button::DPAD_DOWN)) { movement.y += 0.03f; }\n- player... | C | MIT License | pimoroni/32blit-beta | Correct joystick x axis |
510,640 | 03.12.2019 00:22:25 | 0 | 8912540fb35dae6e0d3a4cf843677622dada70ba | Add joystick support | [
{
"change_type": "MODIFY",
"old_path": "examples/raycaster/raycaster.cpp",
"new_path": "examples/raycaster/raycaster.cpp",
"diff": "@@ -210,10 +210,12 @@ void update(uint32_t time) {\nif (pressed(button::DPAD_UP)) {\nmove.x = 0.02f;\n}\n-\n- if (pressed(button::DPAD_DOWN)) {\n+ else if (pressed(butt... | C | MIT License | pimoroni/32blit-beta | Add joystick support |
510,646 | 03.12.2019 01:16:58 | 0 | 8e3b050b4e6eeeeaafcfac4306e49f4e720c5213 | Adds the Doom Fire Example
This example implements the "Doom Fire", as described on this
blogpost: | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/doom-fire/doom-fire.cpp",
"diff": "+/*\n+ * An example that implements the \"Doom Fire\", as documented by Fabien\n+ * Sanglard: http://fabiensanglard.net/doom_fire_psx/\n+ *\n+ */\n+#include <string>\n+#include <string.h>\n+#include <m... | C | MIT License | pimoroni/32blit-beta | Adds the Doom Fire Example
- This example implements the "Doom Fire", as described on this
blogpost: http://fabiensanglard.net/doom_fire_psx/ |
510,640 | 03.12.2019 11:47:50 | 0 | 8629dd5b0183cd536fe7bae6ede313654d7f1e51 | Use correct 32blit lib prefix in STM Makefile
To manage cross-compiling and architecture-specific dependencies the PREFIX value is used to prefix the build directory.
This tweak fixes the STM32 Makefile to include the correct version of the 32blit library. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Makefile",
"new_path": "32blit-stm32/Makefile",
"diff": "@@ -134,7 +134,7 @@ LDSCRIPT = STM32H750VBTx_FLASH.ld\n# libraries\nLIBS = -l32blit -lc -lm -lnosys #-llua\n-LIBDIR = -L../32blit/build.32blit-stm32 #-L../lua\n+LIBDIR = -L../32blit/build.$(... | C | MIT License | pimoroni/32blit-beta | Use correct 32blit lib prefix in STM Makefile
To manage cross-compiling and architecture-specific dependencies the PREFIX value is used to prefix the build directory.
This tweak fixes the STM32 Makefile to include the correct version of the 32blit library. |
510,640 | 03.12.2019 11:49:45 | 0 | 0e8c9d09e38364e90376c10fa0a8402bf936306f | Init timers with pulse of 0
Initialising the timers with a pulse value will cause an unwanted PWM signal between timer init and user code init. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/tim.c",
"new_path": "32blit-stm32/Src/tim.c",
"diff": "@@ -62,7 +62,7 @@ void MX_TIM3_Init(void)\nError_Handler();\n}\nsConfigOC.OCMode = TIM_OCMODE_PWM1;\n- sConfigOC.Pulse = 5000;\n+ sConfigOC.Pulse = 0;\nsConfigOC.OCPolarity = TIM_OCPOLARIT... | C | MIT License | pimoroni/32blit-beta | Init timers with pulse of 0
Initialising the timers with a pulse value will cause an unwanted PWM signal between timer init and user code init. |
510,640 | 04.12.2019 12:18:48 | 0 | 658a3e40ab5828b6f4746ad3c7d142a834156d6b | Change I2C4 from SMBUS to regular I2C
It looks like the SMBUS functions provided by the STM32 HAL do not provide blocking (non _IT suffixed) versions of Master_Transmit and Master_Receive. Since we're not gaining anything from using SMBUS versus I2C I've switched it to I2C. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Inc/i2c.h",
"new_path": "32blit-stm32/Inc/i2c.h",
"diff": "/* USER CODE END Includes */\n-extern SMBUS_HandleTypeDef hsmbus4;\n+extern I2C_HandleTypeDef hi2c4;\n/* USER CODE BEGIN Private defines */\n/* USER CODE END Private defines */\n-void MX_I... | C | MIT License | pimoroni/32blit-beta | Change I2C4 from SMBUS to regular I2C
It looks like the SMBUS functions provided by the STM32 HAL do not provide blocking (non _IT suffixed) versions of Master_Transmit and Master_Receive. Since we're not gaining anything from using SMBUS versus I2C I've switched it to I2C. |
510,640 | 04.12.2019 12:24:40 | 0 | 311f94bda11e4749d31fbbb1dccae73c355d0b0e | Refresh i2c.c from STM32 CubeMX output
To try and keep the project in line with the STM32 CubeMX IOC file, I've refreshed i2c.c with a freshly generated copy from CubeMX. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/i2c.c",
"new_path": "32blit-stm32/Src/i2c.c",
"diff": "I2C_HandleTypeDef hi2c4;\n/* I2C4 init function */\n-\nvoid MX_I2C4_Init(void)\n{\n+\nhi2c4.Instance = I2C4;\n- hi2c4.Init.Timing = 0x10C0ECFF; // ORIGINAL VALUE, WTF IS THIS SO CRYPTIC!!?... | C | MIT License | pimoroni/32blit-beta | Refresh i2c.c from STM32 CubeMX output
To try and keep the project in line with the STM32 CubeMX IOC file, I've refreshed i2c.c with a freshly generated copy from CubeMX. |
510,640 | 04.12.2019 12:30:38 | 0 | 6538f182a62cb7c2cc0fe6db0401e8636e158769 | Tidy peripherals into individual includes
I have tidied the LCD driver, power IC and accelerometer IC into individual files.
This changeset also brings the accelerometer online, however it's still in desperate need of filtering/oversampling. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "32blit-stm32/Inc/i2c-bq24295.h",
"diff": "+#include \"stm32h7xx_hal.h\"\n+#ifndef __BQ24295_H__\n+#define __BQ24295_H__\n+\n+\n+//device defines\n+\n+#define BQ24295_DEVICE_ADDRESS 0x6B << 1\n+\n+#define BQ24295_ID_REGISTER 0x0A\n+#define BQ2429... | C | MIT License | pimoroni/32blit-beta | Tidy peripherals into individual includes
I have tidied the LCD driver, power IC and accelerometer IC into individual files.
This changeset also brings the accelerometer online, however it's still in desperate need of filtering/oversampling. |
510,640 | 04.12.2019 12:33:01 | 0 | 25f402159259d9b3dd1476940da4697303788837 | Add peripherals to Makefile | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Makefile",
"new_path": "32blit-stm32/Makefile",
"diff": "@@ -56,9 +56,12 @@ Src/debug.c \\\nSrc/dma.c \\\nSrc/hrtim.c \\\nSrc/i2c.c \\\n+Src/i2c-msa301.c \\\n+Src/i2c-bq24295.c \\\nSrc/ltdc.c \\\nSrc/quadspi.c \\\nSrc/spi.c \\\n+Src/spi-st7272a.c ... | C | MIT License | pimoroni/32blit-beta | Add peripherals to Makefile |
510,640 | 04.12.2019 16:31:08 | 0 | 98c7a1e3361246d88ded9b877040404ee74b3674 | Add SD card support
This changeset lacks any integration into the Blit API, but local testing confirms that it works and achieves ~800KB/sec
Some limited research suggests we should be able to get faster. Some more work on is required. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "32blit-stm32/Inc/fatfs_sd.h",
"diff": "+#ifndef __FATFS_SD_H\n+#define __FATFS_SD_H\n+#include \"ff.h\"\n+#include \"spi.h\"\n+\n+/* Definitions for MMC/SDC command */\n+#define CMD0 (0x40+0) /* GO_IDLE_STATE */\n+#define CMD1 (0x40+1) /* SEND_O... | C | MIT License | pimoroni/32blit-beta | Add SD card support
This changeset lacks any integration into the Blit API, but local testing confirms that it works and achieves ~800KB/sec
Some limited research suggests we should be able to get faster. Some more work on #1 is required. |
510,640 | 05.12.2019 15:57:46 | 0 | 92fa572e812cdbc79daa96811affc54a6da9ae23 | Limit lowest backlight brightness
Have also tidied up tim.c slightly- removing TODOs where STM Cube output did not match. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/main.c",
"new_path": "32blit-stm32/Src/main.c",
"diff": "@@ -139,7 +139,7 @@ int main(void)\nwhile (1)\n{\n// Backlight\n- __HAL_TIM_SetCompare(&htim15, TIM_CHANNEL_1, 1024 * (1.0 - blit::backlight));\n+ __HAL_TIM_SetCompare(&htim15, TIM_CHANN... | C | MIT License | pimoroni/32blit-beta | Limit lowest backlight brightness
Have also tidied up tim.c slightly- removing TODOs where STM Cube output did not match. |
510,640 | 05.12.2019 16:01:46 | 0 | 47b836fe5b0baae0ea3879d4a96efe68e9c91a69 | Add backlight to hardware-test | [
{
"change_type": "MODIFY",
"old_path": "examples/hardware-test/hardware-test.cpp",
"new_path": "examples/hardware-test/hardware-test.cpp",
"diff": "using namespace blit;\nvoid init() {\n- set_screen_mode(screen_mode::hires);\n+ set_screen_mode(screen_mode::lores);\n}\nvoid render(uint32_t time) {\n@... | C | MIT License | pimoroni/32blit-beta | Add backlight to hardware-test |
510,640 | 07.12.2019 16:24:15 | 0 | 8b87017cfeeff0b694120ba18497a70f5d2ece44 | Scale battery reading to V | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -202,7 +202,7 @@ void blit_process_input() {\nADC_update_joystick_axis(&hadc3, &blit::hack_right);\nif (HAL_ADC_PollForConversion(&hadc3, 1000000) == HAL_OK)\n{\n- blit::battery =... | C | MIT License | pimoroni/32blit-beta | Scale battery reading to V |
510,640 | 07.12.2019 16:26:53 | 0 | bd8d64075cd4e2d81988e079e6d733706d951459 | Add basic accelerometer oversampling
Adds basic averaging over a number of accel readings to smooth the X, Y and Z axes.
This comes at the expense of responsiveness and need re-evaluating. Perhaps switching the ADC to a faster sample rate and catching multi samples in a single read pass would help. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -42,7 +42,7 @@ void blit_init() {\nst7272a_set_bgr();\n- msa301_init(&hi2c4, MSA301_CONTROL2_POWR_MODE_NORMAL, 0x00, MSA301_CONTROL1_ODR_125HZ);\n+ msa301_init(&hi2c4, MSA301_CONT... | C | MIT License | pimoroni/32blit-beta | Add basic accelerometer oversampling
Adds basic averaging over a number of accel readings to smooth the X, Y and Z axes.
This comes at the expense of responsiveness and need re-evaluating. Perhaps switching the ADC to a faster sample rate and catching multi samples in a single read pass would help. |
510,640 | 10.12.2019 12:08:47 | 0 | 978f9f088a388d82590ce3d76dcce4e84d646be3 | Remove references to DMA2D | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/main.c",
"new_path": "32blit-stm32/Src/main.c",
"diff": "#include \"spi.h\"\n#include \"tim.h\"\n#include \"usb_otg.h\"\n-#include \"dma2d.h\"\n#include \"gpio.h\"\n/* Private includes ----------------------------------------------------------... | C | MIT License | pimoroni/32blit-beta | Remove references to DMA2D |
510,640 | 10.12.2019 12:11:04 | 0 | dec7cebb678f3d3ad6a24bb78b41c2f6adb8b79d | Fix prescaler for SDCARD SPI | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/spi.c",
"new_path": "32blit-stm32/Src/spi.c",
"diff": "@@ -38,12 +38,12 @@ void MX_SPI1_Init(void)\nhspi1.Init.CLKPolarity = SPI_POLARITY_LOW;\nhspi1.Init.CLKPhase = SPI_PHASE_1EDGE;\nhspi1.Init.NSS = SPI_NSS_SOFT;\n- hspi1.Init.BaudRatePresca... | C | MIT License | pimoroni/32blit-beta | Fix prescaler for SDCARD SPI |
510,640 | 10.12.2019 13:07:47 | 0 | 4424b0deabe51c0fd4f138846bfcdf2d72f26b4b | Tidy up hardware-test | [
{
"change_type": "MODIFY",
"old_path": "examples/hardware-test/hardware-test.cpp",
"new_path": "examples/hardware-test/hardware-test.cpp",
"diff": "@@ -11,13 +11,15 @@ void init() {\n}\n#define COL1 5\n-#define COL2 65\n+#define COL2 55\n#define COL3 105\n-#define ROW1 70\n-#define ROW2 98\n+#define... | C | MIT License | pimoroni/32blit-beta | Tidy up hardware-test |
510,640 | 12.12.2019 12:11:23 | 0 | 4302167c926cc020854dfa05551575a156e06c91 | Add battery status to hardware-test | [
{
"change_type": "MODIFY",
"old_path": "examples/hardware-test/hardware-test.cpp",
"new_path": "examples/hardware-test/hardware-test.cpp",
"diff": "@@ -114,10 +114,6 @@ void render(uint32_t time) {\nsprintf(text_buf, \"Z: %d\", (int)(blit::tilt.z * 1024));\nfb.text(text_buf, &minimal_font[0][0], poi... | C | MIT License | pimoroni/32blit-beta | Add battery status to hardware-test |
510,640 | 12.12.2019 12:13:19 | 0 | 6f503aeb1b54254d4b5c52038b3f03a1ed1d7eb5 | Suppress wchar-size warnings | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Makefile",
"new_path": "32blit-stm32/Makefile",
"diff": "@@ -42,6 +42,7 @@ Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c \\\nDrivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c \\\nDrivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c \\\nDr... | C | MIT License | pimoroni/32blit-beta | Suppress wchar-size warnings |
510,640 | 12.12.2019 12:14:33 | 0 | 96105392e4beeb3e2436b392cf1b8eddb1224387 | Disable SMBUS module | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Inc/stm32h7xx_hal_conf.h",
"new_path": "32blit-stm32/Inc/stm32h7xx_hal_conf.h",
"diff": "/* #define HAL_JPEG_MODULE_ENABLED */\n/* #define HAL_OPAMP_MODULE_ENABLED */\n/* #define HAL_I2S_MODULE_ENABLED */\n-#define HAL_SMBUS_MODULE_ENABLED\n+/* #d... | C | MIT License | pimoroni/32blit-beta | Disable SMBUS module |
510,654 | 04.12.2019 12:55:04 | 0 | 49de6db699357264264985802306d70348b050e5 | CMake the SDL examples | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "32blit-sdl/32blit-sdl.cmake",
"diff": "+find_package(SDL2 REQUIRED)\n+include_directories(${BLIT_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS})\n+add_library(BlitHalSDL STATIC\n+ ${CMAKE_CURRENT_LIST_DIR}/Input.cpp\n+ ${CMAKE_CURRENT_LIST_DIR}/Main.cpp\n+ ... | C | MIT License | pimoroni/32blit-beta | CMake the SDL examples |
510,654 | 04.12.2019 17:29:08 | 0 | 997e434782acfa6b5af656643ff8f00205640966 | Better approach to CMake with targets | [
{
"change_type": "DELETE",
"old_path": "32blit-sdl/32blit-sdl.cmake",
"new_path": null,
"diff": "-find_package(SDL2 REQUIRED)\n-include_directories(${BLIT_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS})\n-add_library(BlitHalSDL STATIC\n- ${CMAKE_CURRENT_LIST_DIR}/Input.cpp\n- ${CMAKE_CURRENT_LIST_DIR}/Main.cpp\... | C | MIT License | pimoroni/32blit-beta | Better approach to CMake with targets |
510,654 | 04.12.2019 19:41:38 | 0 | 84c5a19ebdbae7c7c3e61c7bbaf97a17a09c8d22 | Catch all the sources | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/CMakeLists.txt",
"new_path": "32blit-sdl/CMakeLists.txt",
"diff": "@@ -20,6 +20,6 @@ target_compile_definitions(BlitHalSDL\n)\nfunction(blit_executable NAME SOURCES)\n- add_executable(${NAME} ${SOURCES})\n+ add_executable(${NAME} ${SOURCES} ${ARGN})... | C | MIT License | pimoroni/32blit-beta | Catch all the sources |
510,654 | 05.12.2019 11:36:25 | 0 | ba38b15228c6652c96bde4536763a03ffc357d67 | Build 32blit elf/bin/hex with CMake
cmake -DCMAKE_TOOLCHAIN_FILE=../32blit.toolchain .. | [
{
"change_type": "DELETE",
"old_path": "32blit-stm32/32blit-stm32.cmake",
"new_path": "32blit-stm32/32blit-stm32.cmake",
"diff": ""
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "32blit-stm32/CMakeLists.txt",
"diff": "+list(APPEND SOURCES\n+ Src/main.c\n+ Src/stm32h7xx... | C | MIT License | pimoroni/32blit-beta | Build 32blit elf/bin/hex with CMake
cmake -DCMAKE_TOOLCHAIN_FILE=../32blit.toolchain .. |
510,654 | 05.12.2019 17:50:52 | 0 | 229906d0ba84181116e770f619bec880e1c8f6ef | Get a bit closer to the Makefile build | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/CMakeLists.txt",
"new_path": "32blit-stm32/CMakeLists.txt",
"diff": "@@ -86,15 +86,17 @@ target_compile_definitions(BlitHalSTM32\n)\nset(MCU_LINKER_SCRIPT \"${CMAKE_CURRENT_LIST_DIR}/${MCU_LINKER_SCRIPT}\" PARENT_SCOPE)\n-set(CMAKE_EXE_LINKER_FLAG... | C | MIT License | pimoroni/32blit-beta | Get a bit closer to the Makefile build |
510,654 | 06.12.2019 17:31:34 | 0 | 68d0a4a8ecc9477506653965f37919f87768275a | Build STM32 HAL as a CMake OBJECT Library
This avoids issues with __weak inside archives. See: | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/CMakeLists.txt",
"new_path": "32blit-stm32/CMakeLists.txt",
"diff": "@@ -62,7 +62,7 @@ list(APPEND SOURCES\nset_source_files_properties( ${SOURCES} PROPERTIES LANGUAGE CXX )\n-add_library(BlitHalSTM32 STATIC ${SOURCES})\n+add_library(BlitHalSTM32 ... | C | MIT License | pimoroni/32blit-beta | Build STM32 HAL as a CMake OBJECT Library
This avoids issues with __weak inside archives. See:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka15833.html |
510,654 | 07.12.2019 21:08:03 | 0 | 1f41e43f711ca0fb2d3d2a7de11caf7587bd79f3 | Fix FFmpeg video capture with CMake | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/CMakeLists.txt",
"new_path": "32blit-sdl/CMakeLists.txt",
"diff": "@@ -11,15 +11,44 @@ target_include_directories(BlitHalSDL\nPRIVATE ${SDL2_INCLUDE_DIRS}\n)\n-target_link_libraries(BlitHalSDL BlitEngine ${SDL2_LIBRARIES})\n+target_link_libraries(Bl... | C | MIT License | pimoroni/32blit-beta | Fix FFmpeg video capture with CMake |
510,640 | 13.12.2019 11:26:21 | 0 | 593a73d497266fc635cff72a6a3c4a5f877e6fd1 | Basic tween example | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/tween-test/tween-test.cpp",
"diff": "+#include <string>\n+#include <string.h>\n+#include <memory>\n+#include <cstdlib>\n+\n+#include \"tween-test.hpp\"\n+#include \"graphics/color.hpp\"\n+\n+using namespace blit;\n+\n+const uint16_t scr... | C | MIT License | pimoroni/32blit-beta | Basic tween example |
510,672 | 13.12.2019 14:21:05 | -3,600 | 115a6b0d6a6e13c64730c780f5fe071c5fc00734 | Fixed a typo, made the steps more clear. | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -32,16 +32,28 @@ You'll need to make sure you:\n1. `sudo apt install libsdl2-dev`\n-Then, to build your project for testing, run:\n+Then, to build your project for testing, go into the *32blit-sdl* directory\n``... | C | MIT License | pimoroni/32blit-beta | Fixed a typo, made the steps more clear. |
510,640 | 14.12.2019 21:40:40 | 0 | dd0458a39c15bc830a18c49d06869ed662fa74db | Automatically update tweens | [
{
"change_type": "MODIFY",
"old_path": "32blit/engine/engine.cpp",
"new_path": "32blit/engine/engine.cpp",
"diff": "*/\n#include \"engine.hpp\"\n#include \"timer.hpp\"\n+#include \"tweening.hpp\"\nnamespace blit {\n@@ -31,6 +32,7 @@ namespace blit {\n// update timers\nupdate_timers(time);\n+ update_... | C | MIT License | pimoroni/32blit-beta | Automatically update tweens |
510,640 | 14.12.2019 22:04:50 | 0 | a827c2fec4f807fb6a36980a8e580dd1c85056fb | Really boring demo of timers | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/timer-test/timer-test.cpp",
"diff": "+#include <string>\n+#include <string.h>\n+#include <memory>\n+#include <cstdlib>\n+\n+#include \"timer-test.hpp\"\n+\n+/*\n+TODO: This example is really dry, how can we make it awesome?\n+Without ma... | C | MIT License | pimoroni/32blit-beta | Really boring demo of timers |
510,640 | 17.12.2019 10:16:01 | 0 | 48f9556dc978ea038e6566de280f84b9f82bd564 | I believe I can fly | [
{
"change_type": "MODIFY",
"old_path": "examples/flight/flight.cpp",
"new_path": "examples/flight/flight.cpp",
"diff": "using namespace blit;\n-uint8_t logo[16][16] = {\n- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n- {0, 0, 1, 1, 1, 1, 1, ... | C | MIT License | pimoroni/32blit-beta | I believe I can fly |
510,640 | 17.12.2019 10:56:23 | 0 | 22af5bf31a02587a8de532d5eef164702a9eebbb | Tidy up flight allocations | [
{
"change_type": "MODIFY",
"old_path": "examples/flight/flight.cpp",
"new_path": "examples/flight/flight.cpp",
"diff": "@@ -14,17 +14,14 @@ using namespace blit;\nconst uint16_t screen_width = 160;\nconst uint16_t screen_height = 120;\n-/* define storage for the framebuffer, spritesheet, and mask */... | C | MIT License | pimoroni/32blit-beta | Tidy up flight allocations |
510,640 | 19.12.2019 21:53:24 | 0 | dc44e7d0eff3455d86e28ceb285780091e296099 | Tweaks to tweening | [
{
"change_type": "MODIFY",
"old_path": "32blit/engine/tweening.cpp",
"new_path": "32blit/engine/tweening.cpp",
"diff": "@@ -18,11 +18,12 @@ namespace blit {\n* @param loops Number of times the tween should repeat, -1 = forever.\n*/\nvoid tween::init(tween_function function, float from, float to, uin... | C | MIT License | pimoroni/32blit-beta | Tweaks to tweening |
510,640 | 23.12.2019 11:11:42 | 0 | 5fbe368ba7b381974287007ab5a5a29d0ab4ee3a | Update README to reflect CMake build system | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -13,8 +13,11 @@ While the 32blit API is not finalised, this repository represents an overview of\n1. Some experience writing/compiling C/C++ software\n2. `gcc` for compiling test builds\n3. `arm-gcc` for compili... | C | MIT License | pimoroni/32blit-beta | Update README to reflect CMake build system |
510,640 | 23.12.2019 11:12:05 | 0 | 37fa92df25d35719e4873f7b1a9782f884bccabe | Fix timer init in platformer | [
{
"change_type": "MODIFY",
"old_path": "examples/platformer/platformer.cpp",
"new_path": "examples/platformer/platformer.cpp",
"diff": "@@ -249,7 +249,7 @@ void animation_timer_callback(timer &timer) {\nslime1.update();\n}\n-timer *t;\n+timer t;\n@@ -263,7 +263,8 @@ void init() {\nbat1.pos = vec2(20... | C | MIT License | pimoroni/32blit-beta | Fix timer init in platformer |
510,649 | 27.12.2019 19:40:53 | 0 | f30804d6a2c86aa69deed6d465c0420444a82b60 | Almost everything builds and runs on OSX | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/CMakeLists.txt",
"new_path": "32blit-sdl/CMakeLists.txt",
"diff": "@@ -50,5 +50,9 @@ endif()\nfunction(blit_executable NAME SOURCES)\nadd_executable(${NAME} ${SOURCES} ${ARGN})\n+ if (${CMAKE_SYSTEM_NAME} STREQUAL Darwin)\n+ target_link_libraries(${... | C | MIT License | pimoroni/32blit-beta | Almost everything builds and runs on OSX |
510,649 | 31.12.2019 23:17:05 | 0 | 737bd03b192e66af321513194d7a72ee7e7d75c0 | Update README with instructions on building on Mac | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -104,6 +104,39 @@ cd build.mingw\ncmake .. -DCMAKE_TOOLCHAIN_FILE=../../../mingww.toolchain -DSDL2_DIR=/usr/local/cross-tools/x86_64-w64-mingw32/lib/cmake/SDL2\n```\n+### Building & Running on OSX\n+\n+You will ... | C | MIT License | pimoroni/32blit-beta | Update README with instructions on building on Mac |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.