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 | 02.01.2020 11:21:51 | 0 | 7d18f469bba93221964eeb8f5669e314c8501b1b | Fix wsl-flash to work from example dirs | [
{
"change_type": "MODIFY",
"old_path": "tools/wsl-flash",
"new_path": "tools/wsl-flash",
"diff": "FILENAME_SRC=$1\nFILENAME_TGT=$(echo $FILENAME_SRC | sed 's/\\.bin/\\.dfu/')\n+BASE_DIR=`dirname $0`\n+\n# Do some rudimentary path fiddling for Windows-compatible path names\nFILEPATH_WIN=$(pwd | sed '... | C | MIT License | pimoroni/32blit-beta | Fix wsl-flash to work from example dirs |
510,640 | 02.01.2020 18:06:56 | 0 | 1a0ee11f83c81a00d07f4f0272d848d03627d5cf | Add rng to Makefile | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Makefile",
"new_path": "32blit-stm32/Makefile",
"diff": "@@ -43,6 +43,7 @@ Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c \\\nDrivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c \\\nDrivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c \... | C | MIT License | pimoroni/32blit-beta | Add rng to Makefile |
510,649 | 03.01.2020 14:16:39 | 0 | c910ea0ed4df99df8d8f0caf4690c3b1dad1726c | Added __SECTON__ macro for setting section attributes on 32blit target. Removed platform (__APPLE__) spectific section related #ifdefs | [
{
"change_type": "MODIFY",
"old_path": "32blit.toolchain",
"new_path": "32blit.toolchain",
"diff": "@@ -21,3 +21,5 @@ set(CMAKE_CXX_FLAGS_INIT \"${COMMON_FLAGS} -fpermissive\")\n#set(CMAKE_EXE_LINKER_FLAGS_INIT \"-specs=nano.specs -T ${MCU_LINKER_SCRIPT} -Wl,--gc-sections\")\nset(CMAKE_EXE_LINKER_FL... | C | MIT License | pimoroni/32blit-beta | Added __SECTON__ macro for setting section attributes on 32blit target. Removed platform (__APPLE__) spectific section related #ifdefs |
510,640 | 06.01.2020 10:24:16 | 0 | 9f5314e689658d110446ab57275264f9c000c64d | Fix README and mingw.toolchain
A couple of small fixes to the Windows build instructions. They were confused between i686 (32bit) and x86_64 (64bit). | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -81,7 +81,7 @@ DISPLAY=:0.0 ./palette-cycle\nTODO: Investigate why this outputs `cannot create target because another target with the same name already exists` errors.\n-To build your project for Win32 you'll ne... | C | MIT License | pimoroni/32blit-beta | Fix README and mingw.toolchain
A couple of small fixes to the Windows build instructions. They were confused between i686 (32bit) and x86_64 (64bit). |
510,670 | 06.01.2020 14:53:52 | 0 | f6f9fa63ad139477917a21fc17a18b0017a6759e | Fixed path for SDL unzipped files | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -88,7 +88,7 @@ You'll also need to cross-compile SDL2 and install it wherever you like to keep\n```\nwget https://www.libsdl.org/release/SDL2-2.0.10.zip\nunzip SDL2-2.0.10.zip\n-cd SDL2-2.0.10.zip\n+cd SDL2-2.0.... | C | MIT License | pimoroni/32blit-beta | Fixed path for SDL unzipped files |
510,670 | 06.01.2020 15:00:53 | 0 | eee18bf632192460359490b9c700f9b843e3f23f | Add install command for mingw compiler for x86 targets | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -79,9 +79,11 @@ DISPLAY=:0.0 ./palette-cycle\n### Building & Running on Win32 (WSL + MinGW)\n-TODO: Investigate why this outputs `cannot create target because another target with the same name already exists` er... | C | MIT License | pimoroni/32blit-beta | Add install command for mingw compiler for x86 targets |
510,640 | 06.01.2020 16:07:04 | 0 | 81dae461cf6cde281c1b5d3b6aa44b5bc5c09381 | Build and SDL2.dll step for mingw build | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -104,8 +104,14 @@ Finally, from the root directory of your project:\nmkdir build.mingw\ncd build.mingw\ncmake .. -DCMAKE_TOOLCHAIN_FILE=../../../mingw.toolchain -DSDL2_DIR=/usr/local/cross-tools/x86_64-w64-mingw... | C | MIT License | pimoroni/32blit-beta | Build and SDL2.dll step for mingw build |
510,654 | 08.01.2020 00:34:15 | 0 | e5525b3fe7713c4086a23adf7c61afd353bcc8f8 | Build DFU files automatically as part of the build
Also fixes the renamed fire directory in examples and adds a new
variable for the size tool instead of hard-coding it. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/CMakeLists.txt",
"new_path": "32blit-stm32/CMakeLists.txt",
"diff": "@@ -95,9 +95,10 @@ function(blit_executable NAME SOURCES)\nset_target_properties(${NAME}.elf PROPERTIES LINK_DEPENDS ${MCU_LINKER_SCRIPT})\nset_property(TARGET ${NAME}.elf APPEND... | C | MIT License | pimoroni/32blit-beta | Build DFU files automatically as part of the build
Also fixes the renamed fire directory in examples and adds a new
variable for the size tool instead of hard-coding it. |
510,640 | 08.01.2020 15:22:06 | 0 | f7006d93b513e1cb71e20bd56161ee8bb66c4fc8 | Simplify wsl-flash to operate on only .dfu files
This change reduces the utility of wsl-flash to operate only upon the .dfu files now created automatically by CMake.
I've also fixed wsl-flash to correctly determine the full path of the .dfu file being flashed and convert it to Windows-style-path. | [
{
"change_type": "MODIFY",
"old_path": "tools/wsl-flash",
"new_path": "tools/wsl-flash",
"diff": "#!/bin/bash\n-FILENAME_SRC=$1\n-FILENAME_TGT=$(echo $FILENAME_SRC | sed 's/\\.bin/\\.dfu/')\n+# Invokes DfuSeCommand.exe to flash a .dfu file to 32blit\n+# requires DfuSeCommand.exe - https://www.st.com... | C | MIT License | pimoroni/32blit-beta | Simplify wsl-flash to operate on only .dfu files
This change reduces the utility of wsl-flash to operate only upon the .dfu files now created automatically by CMake.
I've also fixed wsl-flash to correctly determine the full path of the .dfu file being flashed and convert it to Windows-style-path. |
510,640 | 08.01.2020 17:10:10 | 0 | d2e07901608b972f163899a3fd5e075a1741a336 | Add dump command to dfu tool
This commit adds a "dump" command to the dfu tool, allowing you to extract the contained .bin files.
Run with ./dfu dump --force filename.dfu and one or more DFU files will be creasted with the target/address in their filename. | [
{
"change_type": "MODIFY",
"old_path": "tools/dfu",
"new_path": "tools/dfu",
"diff": "@@ -131,6 +131,8 @@ if __name__ == '__main__':\nsubparsers = parser.add_subparsers(help='Commands', dest='command')\nparser_build = subparsers.add_parser('build', help='Build a DFU image')\nparser_read = subparsers... | C | MIT License | pimoroni/32blit-beta | Add dump command to dfu tool
This commit adds a "dump" command to the dfu tool, allowing you to extract the contained .bin files.
Run with ./dfu dump --force filename.dfu and one or more DFU files will be creasted with the target/address in their filename. |
510,643 | 08.01.2020 20:57:04 | -7,200 | 70022dfd9175674360a1b6a2ea0bc8bee38afc58 | Updated README.md with link to DFuse tool and proper name of GCC ARM toolchain | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -12,13 +12,19 @@ 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\n-3. `arm-gcc` for compi... | C | MIT License | pimoroni/32blit-beta | Updated README.md with link to DFuse tool and proper name of GCC ARM toolchain |
510,643 | 08.01.2020 23:28:43 | -7,200 | c1905c831a64934f7afab185d86f95258c761ef0 | Added info about XMing and Python requirements to the README.md file | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -16,6 +16,7 @@ While the 32blit API is not finalised, this repository represents an overview of\n4. `cmake` and `make` for building 32blit libraries and examples\n5. A DFU upload tool, on Windows it's easiest to... | C | MIT License | pimoroni/32blit-beta | Added info about XMing and Python requirements to the README.md file |
510,640 | 08.01.2020 22:02:40 | 0 | 18adf54c53669768c32d823bae481d28ae202ca3 | Soft fail dfu when missing dependencies
Catches instances where users haven't installed construct and/or bitstring and fails with a soft error so cmake can still finish gracefully since not everyone needs a .dfu. | [
{
"change_type": "MODIFY",
"old_path": "tools/dfu",
"new_path": "tools/dfu",
"diff": "@@ -5,10 +5,33 @@ import sys\nimport pathlib\nimport zlib\n-import construct\n+missing_modules = []\n+try:\nfrom bitstring import BitArray\n+except ImportError:\n+ missing_modules.append(\"bitstring\")\n+\n+try:\n+... | C | MIT License | pimoroni/32blit-beta | Soft fail dfu when missing dependencies
Catches instances where users haven't installed construct and/or bitstring and fails with a soft error so cmake can still finish gracefully since not everyone needs a .dfu. |
510,640 | 08.01.2020 23:23:45 | 0 | 691a68b6f3aaa94f9430a224a5f5c94ce4df4766 | Update README.md with Emscripten instructions
Emscripten is pretty low on our priority list at the moment, but we'd love to get a web UI back some time in the future.
In the mean time you can enjoy sharing your games via the web thanks to | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -167,6 +167,32 @@ And then `make` as normal.\nThe result of your build will be a `.bin`, `.hex`, `.elf` and DfuSe-compatible `.dfu` file.\n+### Building & Running For Web (Emscripten)\n+\n+Building in Emscripten... | C | MIT License | pimoroni/32blit-beta | Update README.md with Emscripten instructions
Emscripten is pretty low on our priority list at the moment, but we'd love to get a web UI back some time in the future.
In the mean time you can enjoy sharing your games via the web thanks to @Daft-Freak |
510,640 | 08.01.2020 23:31:54 | 0 | af7e98b133d49aabdbef7f563f105620911774ce | Begin docs for | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "docs/32blit.md",
"diff": "+### Building & Running On 32blit\n+\n+To build your project for 32blit using arm-none-eabi-gcc you should prepare the Makefile with CMake using the provided toolchain file.\n+\n+From the root of your project:\n+\n+```\... | C | MIT License | pimoroni/32blit-beta | Begin docs for #47 |
510,643 | 09.01.2020 09:02:24 | -7,200 | d3377835cce332b0e664f4e43921d2085cc3505f | Moved documentation bits into the docs folder
As a result, README.md became much more simpler. | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -20,22 +20,7 @@ While the 32blit API is not finalised, this repository represents an overview of\nOn Windows 10 you can either build for win32 or use XMing and run your builds in WSL by prefixing with `DISPLAY=:... | C | MIT License | pimoroni/32blit-beta | Moved documentation bits into the docs folder #47
As a result, README.md became much more simpler. |
510,640 | 09.01.2020 12:36:23 | 0 | e6ed00059677c0ece5b27173325777e9ed8ea62c | Add USB Serial sources and include dirs | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/CMakeLists.txt",
"new_path": "32blit-stm32/CMakeLists.txt",
"diff": "@@ -33,14 +33,26 @@ list(APPEND SOURCES\nDrivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c\nDrivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c\nDrivers/STM32H7xx_HAL_Dri... | C | MIT License | pimoroni/32blit-beta | Add USB Serial sources and include dirs |
510,640 | 09.01.2020 12:45:03 | 0 | b7ed61becb2cb769bdbd8876fdd5d4a24fb59546 | Move serial debug code to new example | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/serial-debug/CMakeLists.txt",
"diff": "+cmake_minimum_required(VERSION 2.8.9)\n+project (serial-debug)\n+include (../../32blit.cmake)\n+blit_executable (serial-debug serial-debug.cpp)\n"
},
{
"change_type": "RENAME",
"old_pa... | C | MIT License | pimoroni/32blit-beta | Move serial debug code to new example |
510,640 | 09.01.2020 12:56:51 | 0 | 8c47cae823a3d54f9c2b4f688d60d118fae452d4 | Fix "unable to configure serial port" Windows Error
As per I've added in support for line coding which appears to fix serial on Windows 10. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/usbd_cdc_if.c",
"new_path": "32blit-stm32/Src/usbd_cdc_if.c",
"diff": "@@ -225,12 +225,14 @@ static int8_t CDC_Control_HS(uint8_t cmd, uint8_t* pbuf, uint16_t length)\n/* 4 - Space */\n/* 6 | bDataBits | 1 | Number Data bits (5, 6, 7, 8 or 16)... | C | MIT License | pimoroni/32blit-beta | Fix "unable to configure serial port" Windows Error
As per https://stackoverflow.com/questions/56490843/what-is-issue-with-stm32-virtual-com-port-i-can-not-open-it I've added in support for line coding which appears to fix serial on Windows 10. |
510,640 | 09.01.2020 20:25:47 | 0 | 1004d8ce35ac647817a20f0db692350b8ec3ad35 | Ignore build output | [
{
"change_type": "MODIFY",
"old_path": ".gitignore",
"new_path": ".gitignore",
"diff": "@@ -333,3 +333,17 @@ ASALocalRun/\n# Object files and other build cruft\n*.o\nlib32blit.a\n+\n+build.*/\n+build/\n+\n+# STM32 CubeMX Project Output (should be manually synced to 32blit-stm32 tree)\n+.vscode/\n+ha... | C | MIT License | pimoroni/32blit-beta | Ignore build output |
510,665 | 10.01.2020 11:08:01 | 0 | 439af0e5e73bfc8ccf6f3337b7dcf9a3172447f4 | Added arrayname command line option to allow for the naming of the generated packed_data array | [
{
"change_type": "MODIFY",
"old_path": "tools/sprite-builder",
"new_path": "tools/sprite-builder",
"diff": "@@ -264,6 +264,9 @@ if __name__ == '__main__':\nparser.add_argument('--tilesizex', type=int, help='tile size x', default=8)\nparser.add_argument('--tilesizey', type=int, help='tile size y', de... | C | MIT License | pimoroni/32blit-beta | Added arrayname command line option to allow for the naming of the generated packed_data array |
510,665 | 10.01.2020 15:05:17 | 0 | f20d73e8da93ec7eb345876a8a7f0f14b71524df | Moved so the option only applies to packed sprites | [
{
"change_type": "MODIFY",
"old_path": "tools/sprite-builder",
"new_path": "tools/sprite-builder",
"diff": "@@ -265,7 +265,7 @@ if __name__ == '__main__':\nparser.add_argument('--tilesizey', type=int, help='tile size y', default=8)\n# Allow for naming of the resulting packed_data array\n- parser.add... | C | MIT License | pimoroni/32blit-beta | Moved so the option only applies to packed sprites |
510,640 | 11.01.2020 00:48:44 | 0 | 3ba5cb7636f63d17b880d7afbcb227c5e4482ba6 | Scrolly tile rainbows | [
{
"change_type": "MODIFY",
"old_path": "examples/scrolly-tile/scrolly-tile.cpp",
"new_path": "examples/scrolly-tile/scrolly-tile.cpp",
"diff": "#include \"scrolly-tile.hpp\"\n+#include \"graphics/color.hpp\"\n-#define W blit::fb.bounds.w\n-#define H blit::fb.bounds.h\n+#define SCREEN_W blit::fb.boun... | C | MIT License | pimoroni/32blit-beta | Scrolly tile rainbows |
510,640 | 11.01.2020 13:26:45 | 0 | 6b5796a179227fdfe0c80c42664b20a254782c49 | Fix LCD clock so it's not at 95Hz | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/main.c",
"new_path": "32blit-stm32/Src/main.c",
"diff": "@@ -240,7 +240,7 @@ void SystemClock_Config(void)\nPeriphClkInitStruct.PLL3.PLL3N = 129;\nPeriphClkInitStruct.PLL3.PLL3P = 2;\nPeriphClkInitStruct.PLL3.PLL3Q = 2;\n- PeriphClkInitStruct.... | C | MIT License | pimoroni/32blit-beta | Fix LCD clock so it's not at 95Hz |
510,640 | 11.01.2020 13:27:24 | 0 | bd718e45bbc3999ce3db3e1e9eb32791eecc7244 | Move vsync to fix screen tearing | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -366,6 +366,10 @@ void blit_flip() {\n} else {\n// LORES mode\n+ // wait for next frame if LTDC hardware currently drawing, ensures\n+ // no tearing\n+ while (!(LTDC->CDSR & LTDC_... | C | MIT License | pimoroni/32blit-beta | Move vsync to fix screen tearing |
510,640 | 11.01.2020 22:58:32 | 0 | 87da85a6344690510e12884ecb3b1a1bb2d23b27 | Fix eggregious errors in scrolly-tile | [
{
"change_type": "MODIFY",
"old_path": "examples/scrolly-tile/scrolly-tile.cpp",
"new_path": "examples/scrolly-tile/scrolly-tile.cpp",
"diff": "#define TILE_W 10\n#define TILE_H 10\n-#define TILE_SOLID 0b1 << 15\n-#define TILE_WATER 0b1 << 14\n-#define TILE_LINKED 0b1 << 13\n+#define TILE_SOLID 0b1 ... | C | MIT License | pimoroni/32blit-beta | Fix eggregious errors in scrolly-tile |
510,640 | 13.01.2020 00:04:56 | 0 | cd921e659047ff2c5f0d2fe0f70adba3c67d3028 | Fix two silly bugs
Okay so I was linking passages backwards... sheesh! I shouldn't be doing this at midnight.
Also my check for whether the current passage was outside of the current passage width was backwards.
Both fixed. Should be fair, reasonable and predictable now! (He says, for the 4th time?) | [
{
"change_type": "MODIFY",
"old_path": "examples/scrolly-tile/scrolly-tile.cpp",
"new_path": "examples/scrolly-tile/scrolly-tile.cpp",
"diff": "@@ -274,7 +274,7 @@ void generate_new_row_mask() {\n// that it's always navigable without having to reject\n// procedurally generated segments\nfor(auto p =... | C | MIT License | pimoroni/32blit-beta | Fix two silly bugs
Okay so I was linking passages backwards... sheesh! I shouldn't be doing this at midnight.
Also my check for whether the current passage was outside of the current passage width was backwards.
Both fixed. Should be fair, reasonable and predictable now! (He says, for the 4th time?) |
510,643 | 13.01.2020 13:04:30 | -7,200 | 5fb1e8c7d27451f58401f2eb882b82e10d04c75a | Created an "empty" game for beta testers to base their work upon | [
{
"change_type": "MODIFY",
"old_path": "docs/VisualStudio.md",
"new_path": "docs/VisualStudio.md",
"diff": "@@ -19,3 +19,7 @@ Place these in the `vs\\sdl\\` folder.\n## Visual Studio solution file\nNow you can proceed to open `vs\\32blit.sln`. It contains two static linked libraries, _32blit_ and _3... | C | MIT License | pimoroni/32blit-beta | Created an "empty" game for beta testers to base their work upon |
510,643 | 13.01.2020 13:13:59 | -7,200 | df6cfac2aa6f6a4ad788337ebc533ec3a7a6e3b1 | Linked to other docs from the main readme (plus small fix for the Linux file) | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -22,7 +22,19 @@ On Windows 10 you can either build for win32 or use XMing and run your builds in\nFor more information about how to build on the various systems, refer to the platform specific docs in the `docs`... | C | MIT License | pimoroni/32blit-beta | Linked to other docs from the main readme (plus small fix for the Linux file) |
510,640 | 14.01.2020 09:38:47 | 0 | a5b01747bb53d744464b29e8f093852c69ea488c | Sync ioc file to latest code changes
Fix LTDC clock to ~4.86MHz (DIVR3 == 53) to prevent overdriving the LCD and wasting cycles
Change SPI1 Fifo Threshold to 16 Data for a nearly 2x boost in SD card speed
Enable GPIO_PULLUP on SD_DETECT | [
{
"change_type": "MODIFY",
"old_path": "hardware/STM32H750VBTx.ioc",
"new_path": "hardware/STM32H750VBTx.ioc",
"diff": "@@ -66,6 +66,7 @@ Dma.DAC1_CH2.0.SyncSignalID=NONE\nDma.Request0=DAC1_CH2\nDma.RequestsNb=1\nFile.Version=6\n+GPIO.groupedBy=Group By Peripherals\nHRTIM.IPParameters=PrescalerRatio... | C | MIT License | pimoroni/32blit-beta | Sync ioc file to latest code changes
- Fix LTDC clock to ~4.86MHz (DIVR3 == 53) to prevent overdriving the LCD and wasting cycles
- Change SPI1 Fifo Threshold to 16 Data for a nearly 2x boost in SD card speed
- Enable GPIO_PULLUP on SD_DETECT |
510,640 | 14.01.2020 09:42:58 | 0 | 8c1c1bb63184bc30d229c6428c2f5ca96e8ab0f7 | SPI speedup
These fixes brought over from Jon's branch nearly double the SD card throughput. Yay!
Changed SPI1 Fifo Threshold to 16 Data
Enabled pull-up on SD_DETECT | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/gpio.c",
"new_path": "32blit-stm32/Src/gpio.c",
"diff": "@@ -136,7 +136,7 @@ void MX_GPIO_Init(void)\n/*Configure GPIO pin : PtPin */\nGPIO_InitStruct.Pin = SD_DETECT_Pin;\nGPIO_InitStruct.Mode = GPIO_MODE_INPUT;\n- GPIO_InitStruct.Pull = GPIO... | C | MIT License | pimoroni/32blit-beta | SPI speedup
These fixes brought over from Jon's branch nearly double the SD card throughput. Yay!
- Changed SPI1 Fifo Threshold to 16 Data
- Enabled pull-up on SD_DETECT |
510,640 | 14.01.2020 23:54:48 | 0 | ccfdd642f1ca2aec6f7930f18eac8e6deb594630 | Rainbow Ascent bugfix
Level bug finally fixed. The previous passage width variable was leaking into the subsequent generation and this broke the number sequence.
Turned off debug info and restored water. | [
{
"change_type": "MODIFY",
"old_path": "examples/scrolly-tile/scrolly-tile.cpp",
"new_path": "examples/scrolly-tile/scrolly-tile.cpp",
"diff": "@@ -81,6 +81,7 @@ enum enum_player_state {\n};\nenum_player_state player_state = ground;\n+uint8_t last_passage_width = 0;\nfloat water_level = 0;\n@@ -228,... | C | MIT License | pimoroni/32blit-beta | Rainbow Ascent bugfix
Level bug finally fixed. The previous passage width variable was leaking into the subsequent generation and this broke the number sequence.
Turned off debug info and restored water. |
510,654 | 16.01.2020 15:51:01 | 0 | 5d8fffa28c2202092ad38622fa3fb38ae18510f4 | Make mode static to avoid collisions | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -34,7 +34,7 @@ FRESULT SD_FileOpenError = FR_INVALID_PARAMETER;\nuint32_t total_samples = 0;\nuint8_t dma_status = 0;\n-blit::screen_mode mode = blit::screen_mode::lores;\n+static... | C | MIT License | pimoroni/32blit-beta | Make mode static to avoid collisions |
510,672 | 17.01.2020 16:26:43 | -3,600 | 6eee0ebdb2c60a4f637ff845f587335de0725627 | Removed readme.md in the tools folder and added a short description of the new Sprite Builder into the docs folder. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "docs/Tools.md",
"diff": "+# Tools\n+\n+## Sprite Builder\n+\n+The `sprite-builder` tool is intended to be a tool for packing 32blit images into byte-arrays, includes, or data files for use in code.\n+\n+The script outputs to a C++ byte-array and... | C | MIT License | pimoroni/32blit-beta | Removed readme.md in the tools folder and added a short description of the new Sprite Builder into the docs folder. |
510,640 | 20.01.2020 12:46:43 | 0 | 81265b9bbd11d71291be2d8cb3364b76650c83b9 | Remove defunct tools README | [
{
"change_type": "DELETE",
"old_path": "tools/README.md",
"new_path": null,
"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 packi... | C | MIT License | pimoroni/32blit-beta | Remove defunct tools README |
510,663 | 23.01.2020 15:44:05 | 0 | 5c6a51a6d6bd6f8e5edff865a276dfd91c7a836c | Added troubleshooting section for extraction of SDL
Added troubleshooting section for extraction of SDL libraries. | [
{
"change_type": "MODIFY",
"old_path": "docs/VisualStudio.md",
"new_path": "docs/VisualStudio.md",
"diff": "@@ -51,3 +51,7 @@ cd vcpkg\nTo find the built files use `Project` > `CMake Cache` > `Open in Explorer`.\n[More info about using CMake with Visual Studio](https://docs.microsoft.com/en-us/cpp/b... | C | MIT License | pimoroni/32blit-beta | Added troubleshooting section for extraction of SDL
Added troubleshooting section for extraction of SDL libraries. |
510,663 | 23.01.2020 15:54:38 | 0 | 1e55c4a0b808982d098a22779c745ff487e54494 | Add troubleshooting for pip3 installs | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -66,4 +66,5 @@ Refer to the OS/platform specific documentation files in the `docs/` folder for\nIf you see `cannot create target because another target with the same name already exists` you've probably run `cma... | C | MIT License | pimoroni/32blit-beta | Add troubleshooting for pip3 installs |
510,651 | 25.01.2020 14:39:20 | 0 | ecce1cbba0947649124cef96608b01e1bd34e1f4 | Update linux docs
Added an apt-get line for required tools to setup the environment. | [
{
"change_type": "MODIFY",
"old_path": "docs/Linux.md",
"new_path": "docs/Linux.md",
"diff": "# Building & Running on Linux or WSL + XMing\n+First install some required tools:\n+\n+```\n+apt-get install git cmake gcc g++ libsdl2-dev\n+```\n+\nTo build your project for testing, go into the relevant e... | C | MIT License | pimoroni/32blit-beta | Update linux docs
Added an apt-get line for required tools to setup the environment. |
510,673 | 26.01.2020 04:31:24 | 0 | dcae8e96f513e399f783155300cb4359fd9f5098 | Added instructions on how to upload via dfu-util | [
{
"change_type": "MODIFY",
"old_path": "docs/32blit.md",
"new_path": "docs/32blit.md",
"diff": "@@ -14,6 +14,18 @@ And then `make` as normal.\nThe result of your build will be a `.bin`, `.hex`, `.elf` and DfuSe-compatible `.dfu` file.\n+## Uploading to the 32blit via DFU\n+\n+### Linux and macOS\n+I... | C | MIT License | pimoroni/32blit-beta | Added instructions on how to upload via dfu-util |
510,673 | 26.01.2020 04:39:59 | 0 | f39c238ca42a97319a5c0f8e7e2440ae4661eaef | Added how to put device in dfu mode | [
{
"change_type": "MODIFY",
"old_path": "docs/32blit.md",
"new_path": "docs/32blit.md",
"diff": "@@ -16,7 +16,12 @@ The result of your build will be a `.bin`, `.hex`, `.elf` and DfuSe-compatible `\n## Uploading to the 32blit via DFU\n+### Prepare the device\n+\n+To enter DFU mode either hold the X & ... | C | MIT License | pimoroni/32blit-beta | Added how to put device in dfu mode |
510,640 | 29.01.2020 15:03:30 | 0 | c05a13a42b7645713ceefa9de674b4f3b825fee6 | Update scrolly-tile
Fix wall cling/climb, allowing player to climb walls slowly and consistently.
Increase walljump X velocity slightly.
Add really basic sound effects | [
{
"change_type": "MODIFY",
"old_path": "examples/scrolly-tile/scrolly-tile.cpp",
"new_path": "examples/scrolly-tile/scrolly-tile.cpp",
"diff": "#include \"scrolly-tile.hpp\"\n#include \"graphics/color.hpp\"\n+using namespace blit;\n+\n+//#define __AUDIO__\n+\n#define SCREEN_W 160\n#define SCREEN_H 1... | C | MIT License | pimoroni/32blit-beta | Update scrolly-tile
Fix wall cling/climb, allowing player to climb walls slowly and consistently.
Increase walljump X velocity slightly.
Add really basic sound effects |
510,640 | 29.01.2020 16:52:51 | 0 | 44c9f50438c421cd31db42f6ac137ff6de37e936 | Add ifdef guard around water audio | [
{
"change_type": "MODIFY",
"old_path": "examples/scrolly-tile/scrolly-tile.cpp",
"new_path": "examples/scrolly-tile/scrolly-tile.cpp",
"diff": "@@ -502,7 +502,9 @@ void update(uint32_t time_ms) {\nif (water_dist < 0) {\nwater_dist = 0;\n}\n+#ifdef __AUDIO__\naudio::channels[0].volume = 4000 + (sin(f... | C | MIT License | pimoroni/32blit-beta | Add ifdef guard around water audio |
510,640 | 29.01.2020 16:55:36 | 0 | 687dd2afbbba725cf355a1117d8824f7b2f1fee6 | Experimental travis.yml | [
{
"change_type": "ADD",
"old_path": null,
"new_path": ".travis.yml",
"diff": "+notifications:\n+ email: false\n+\n+language: node_js\n+node_js:\n+ - node\n+\n+sudo: required\n+\n+services:\n+ - docker\n+\n+before_install:\n+ - docker run -dit --name emscripten -v $(pwd):/src trzeci/emscripten:sdk-in... | C | MIT License | pimoroni/32blit-beta | Experimental travis.yml |
510,640 | 29.01.2020 16:58:10 | 0 | bd4705807dc62e7d69c179848ad3165ebb4bb7dd | Pass correct container to command | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -15,5 +15,6 @@ before_install:\nscript:\n- docker exec -it emscripten mkdir build.em\n- - docker exec -it cd build.em\n+ - docker exec -it emscripten cd build.em\n- docker exec -it emscripten emcmake cmake .... | C | MIT License | pimoroni/32blit-beta | Pass correct container to command |
510,640 | 29.01.2020 17:11:17 | 0 | 1df630133005eb3d5545c7894b4a6e5403f449a7 | Working (hopefully) emscripten Travis config | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -14,7 +14,6 @@ before_install:\n- docker run -dit --name emscripten -v $(pwd):/src trzeci/emscripten:sdk-incoming-64bit bash\nscript:\n- - docker exec -it emscripten mkdir build.em\n- - docker exec -it emscr... | C | MIT License | pimoroni/32blit-beta | Working (hopefully) emscripten Travis config |
510,644 | 30.01.2020 15:58:49 | 0 | 82bd46e53b28ce7c3f9857889c2c6b841bc3feef | Crashes on many examples - looking into it. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Inc/stm32h7xx_it.h",
"new_path": "32blit-stm32/Inc/stm32h7xx_it.h",
"diff": "@@ -61,6 +61,8 @@ void TIM3_IRQHandler(void);\nvoid TIM4_IRQHandler(void);\nvoid TIM6_DAC_IRQHandler(void);\nvoid OTG_HS_IRQHandler(void);\n+void LTDC_IRQHandler(void);\n... | C | MIT License | pimoroni/32blit-beta | Crashes on many examples - looking into it. |
510,644 | 31.01.2020 10:30:52 | 0 | df6e76a750a58cdb2cea5329e87a16fb660a9b20 | Move frambuffers around and change hires flipping behaviour | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/STM32H750VBTx_FLASH.ld",
"new_path": "32blit-stm32/STM32H750VBTx_FLASH.ld",
"diff": "@@ -42,9 +42,10 @@ _Min_Stack_Size = 0x400; /* required amount of stack */\nMEMORY\n{\nDTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K\n-RAM_D1 (xrw) : ORIGIN ... | C | MIT License | pimoroni/32blit-beta | Move frambuffers around and change hires flipping behaviour |
510,640 | 31.01.2020 11:38:32 | 0 | 25da81b58850605cc6e6efa996f02a62b164cd9f | Try to bring ADC DMA online | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Inc/stm32h7xx_it.h",
"new_path": "32blit-stm32/Inc/stm32h7xx_it.h",
"diff": "@@ -57,6 +57,10 @@ void DebugMon_Handler(void);\nvoid PendSV_Handler(void);\nvoid SysTick_Handler(void);\nvoid DMA1_Stream0_IRQHandler(void);\n+void DMA1_Stream1_IRQHandl... | C | MIT License | pimoroni/32blit-beta | Try to bring ADC DMA online |
510,644 | 31.01.2020 11:56:07 | 0 | 83000a154fa5969b02a92e38e6ef86b5ddf14f06 | Only enble line interrupt after render completes | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -37,6 +37,7 @@ FRESULT SD_FileOpenError = FR_INVALID_PARAMETER;\nuint32_t total_samples = 0;\nuint8_t dma_status = 0;\nbool needs_render = true;\n+uint32_t flip_cycle_count = 0;\n... | C | MIT License | pimoroni/32blit-beta | Only enble line interrupt after render completes |
510,644 | 31.01.2020 13:22:07 | 0 | 604d8f05394856d60fd123ee2d6f91ab97bba7eb | Faster flips | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -45,7 +45,7 @@ static blit::screen_mode mode = blit::screen_mode::lores;\nsurface __ltdc((uint8_t *)&__ltdc_start, pixel_format::RGB565, size(320, 240));\nsurface __fb_hires((uint... | C | MIT License | pimoroni/32blit-beta | Faster flips |
510,644 | 31.01.2020 13:28:59 | 0 | 50af11aac0b54a6aff2a2405fd5d5d08d9595bfc | Faster lores flip | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -116,8 +116,8 @@ void blit_tick() {\nblit::render(blit::now());\n// debug cycle count for flip\n- //blit::fb.pen(rgba(255, 255, 255));\n- //blit::fb.text(std::to_string(flip_cycle... | C | MIT License | pimoroni/32blit-beta | Faster lores flip |
510,644 | 31.01.2020 13:29:42 | 0 | 55ba5783fee141a163992004fb9a6fd9ad30a828 | Aaaaand remove the debugging text... | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -116,8 +116,8 @@ void blit_tick() {\nblit::render(blit::now());\n// debug cycle count for flip\n- blit::fb.pen(rgba(255, 255, 255));\n- blit::fb.text(std::to_string(flip_cycle_cou... | C | MIT License | pimoroni/32blit-beta | Aaaaand remove the debugging text... |
510,644 | 31.01.2020 15:12:12 | 0 | 9817905d5c409869aa4afd5987c5a929a5db4eee | Add P_RGBA blend support for surface | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/main.c",
"new_path": "32blit-stm32/Src/main.c",
"diff": "@@ -237,7 +237,7 @@ void SystemClock_Config(void)\nPeriphClkInitStruct.PLL3.PLL3N = 129;\nPeriphClkInitStruct.PLL3.PLL3P = 2;\nPeriphClkInitStruct.PLL3.PLL3Q = 2;\n- PeriphClkInitStruct.... | C | MIT License | pimoroni/32blit-beta | Add P_RGBA blend support for surface |
510,640 | 31.01.2020 15:25:15 | 0 | c58e250e12c87f1299f6d39f75c3bf8d839602b0 | Drop old syntax, rename m to mask | [
{
"change_type": "MODIFY",
"old_path": "examples/raycaster/raycaster.cpp",
"new_path": "examples/raycaster/raycaster.cpp",
"diff": "@@ -11,8 +11,7 @@ using namespace blit;\nconst uint16_t screen_width = 160;\nconst uint16_t screen_height = 120;\n-uint8_t __ss[160 * 160] __SECTION__(\".ss\");\n-uint8... | C | MIT License | pimoroni/32blit-beta | Drop old syntax, rename m to mask |
510,640 | 31.01.2020 15:59:15 | 0 | e4be893aceb7c6c96107da353ea5b04fb20f36e6 | Optimise input handling | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -116,16 +116,12 @@ uint32_t blit_update_dac(FIL *audio_file) {\n}\nvoid blit_tick() {\n-\nif(needs_render) {\nblit::render(blit::now());\n-\n- // debug cycle count for flip\n-// b... | C | MIT License | pimoroni/32blit-beta | Optimise input handling |
510,640 | 31.01.2020 16:00:56 | 0 | d3a4076caff18726e728c834c6d8d0ca67aa337d | Remove cycle count | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -118,8 +118,6 @@ uint32_t blit_update_dac(FIL *audio_file) {\nvoid blit_tick() {\nif(needs_render) {\nblit::render(blit::now());\n- blit::fb.pen(rgba(255, 255, 255));\n- blit::fb.... | C | MIT License | pimoroni/32blit-beta | Remove cycle count |
510,652 | 31.01.2020 16:13:50 | 0 | ffcd5e2858558bc17e3c95229fe9971af023df4d | Update VisualStudio.md
slight typo | [
{
"change_type": "MODIFY",
"old_path": "docs/VisualStudio.md",
"new_path": "docs/VisualStudio.md",
"diff": "@@ -48,7 +48,7 @@ cd vcpkg\n2. Open Visual Studio\n-3. `File` > `Open` > `Folder` and open the folder where you cloned this repo. (Alternatively, if you haven't cloned the repo yet, use `File`... | C | MIT License | pimoroni/32blit-beta | Update VisualStudio.md
slight typo |
510,670 | 07.01.2020 15:34:19 | 0 | 079bb84db076395ed0128c07e573f2a1962abf83 | Audio testing | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Inc/32blit.h",
"new_path": "32blit-stm32/Inc/32blit.h",
"diff": "@@ -34,8 +34,8 @@ extern void blit_update_led();\nextern void blit_process_input();\n// Audio\n-extern void blit_enable_dac();\n-extern uint32_t blit_update_dac(FIL *audio_file);\n+e... | C | MIT License | pimoroni/32blit-beta | Audio testing |
510,670 | 08.01.2020 16:07:55 | 0 | 5d58482bd9dd6657942415a99cfa104d5d740e7a | Playing SID capture with somewhat convincing fidelity now... | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -96,8 +96,12 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {\nauto &channel = blit::audio.channels[0];\nfor(auto &channel : blit::audio.channels) {\n- if(channel.... | C | MIT License | pimoroni/32blit-beta | Playing SID capture with somewhat convincing fidelity now... |
510,640 | 09.01.2020 21:33:22 | 0 | d3ce3bf7ab3a067ae4b0e2193eab0bbef2d4f3f0 | Add SDL audio support
This currently sounds awful, but it's descernably correct-ish. May need improvement. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "32blit-sdl/Audio.cpp",
"diff": "+#include <algorithm>\n+#include <cstdio>\n+#include \"SDL.h\"\n+\n+#include \"Audio.hpp\"\n+#include \"engine/audio.hpp\"\n+\n+Audio::Audio() {\n+ SDL_AudioSpec *desired;\n+\n+ desired = new SDL_AudioSpec();\n+ a... | C | MIT License | pimoroni/32blit-beta | Add SDL audio support
This currently sounds awful, but it's descernably correct-ish. May need improvement. |
510,670 | 12.01.2020 22:32:21 | 0 | e6e0d58690edebc51f76bfb355416b8dcc829916 | Script to create chunked terrain file, file handling functions (open, read, close), changes to linker to free up more contiguous heap area. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Inc/32blit.h",
"new_path": "32blit-stm32/Inc/32blit.h",
"diff": "@@ -12,8 +12,8 @@ extern void update(uint32_t time);\nextern void render(uint32_t time);\n// SD storage\n-bool blit_mount_sd(char label[12], uint32_t &totalspace, uint32_t &freespace... | C | MIT License | pimoroni/32blit-beta | Script to create chunked terrain file, file handling functions (open, read, close), changes to linker to free up more contiguous heap area. |
510,640 | 27.01.2020 15:29:12 | 0 | 08e9bdb3aff5023dcf88ea5808c852fa084d0617 | Enable USB, cleanup dead code | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Inc/32blit.h",
"new_path": "32blit-stm32/Inc/32blit.h",
"diff": "#include \"32blit.hpp\"\n#include \"fatfs.h\"\n-#define DAC_BUFFER_SIZE 4000\n-#define DAC_DMA_COMPLETE 2\n-#define DAC_DMA_HALF_COMPLETE 1\n-\n// Functions defined by user code file... | C | MIT License | pimoroni/32blit-beta | Enable USB, cleanup dead code |
510,640 | 27.01.2020 15:59:24 | 0 | 437a577054deaf2307da8417434905f763884484 | Build fixes, audio-test VCproj | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Audio.cpp",
"new_path": "32blit-sdl/Audio.cpp",
"diff": "#include <algorithm>\n#include <cstdio>\n+#include <iostream>\n#include \"SDL.h\"\n#include \"Audio.hpp\"\n@@ -20,6 +21,14 @@ Audio::Audio() {\naudio_device = SDL_OpenAudioDevice(NULL, 0, desi... | C | MIT License | pimoroni/32blit-beta | Build fixes, audio-test VCproj |
510,640 | 27.01.2020 17:05:13 | 0 | f590024b0dfd300619ba45617147079b245918b6 | Disable audio in emscripten builds, doesn't work | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/Audio.cpp",
"new_path": "32blit-sdl/Audio.cpp",
"diff": "@@ -21,14 +21,6 @@ Audio::Audio() {\naudio_device = SDL_OpenAudioDevice(NULL, 0, desired, audio_spec, 0);\n- if(desired->freq != audio_spec->freq) {\n- std::cout << \"Audio Init Failed: Invali... | C | MIT License | pimoroni/32blit-beta | Disable audio in emscripten builds, doesn't work |
510,654 | 28.01.2020 02:55:30 | 0 | 8a51ef28079bcfcde1ac269fe4a7ed7caef7a367 | Don't execute the same note multiple times
Beat advances once every 5 frames. Return before executing any audio code if the beat has not advanced on this frame. | [
{
"change_type": "MODIFY",
"old_path": "examples/audio-test/audio-test.cpp",
"new_path": "examples/audio-test/audio-test.cpp",
"diff": "@@ -86,9 +86,12 @@ void render(uint32_t time_ms) {\nvoid update(uint32_t time_ms) {\nstatic uint16_t tick = 0;\n+ static uint16_t prev_beat = 1;\n+ beat = (tick / 5... | C | MIT License | pimoroni/32blit-beta | Don't execute the same note multiple times
Beat advances once every 5 frames. Return before executing any audio code if the beat has not advanced on this frame. |
510,654 | 28.01.2020 03:00:58 | 0 | eea035ba7680dad212f4e444d496569272cf2c17 | Fix default duty cycle to be 50%
Due to use of less-than, 0x80 gives a 50% duty cycle here. | [
{
"change_type": "MODIFY",
"old_path": "32blit/engine/audio.hpp",
"new_path": "32blit/engine/audio.hpp",
"diff": "@@ -66,7 +66,7 @@ namespace blit {\nuint16_t decay_ms = 6; // decay period\nuint16_t sustain = 0xffff; // sustain volume\nuint16_t release_ms = 1; // release period\n- uint16_t pulse_wid... | C | MIT License | pimoroni/32blit-beta | Fix default duty cycle to be 50%
Due to use of less-than, 0x80 gives a 50% duty cycle here. |
510,640 | 29.01.2020 10:51:40 | 0 | 37f1f01eb4abdf882b9984e0035bb4fa0b1f3e68 | Remove accidental .vscode/settings.json | [
{
"change_type": "DELETE",
"old_path": ".vscode/settings.json",
"new_path": null,
"diff": "-{\n- \"files.associations\": {\n- \"cstdint\": \"c\",\n- \"queue\": \"c\",\n- \"vector\": \"cpp\",\n- \"random\": \"cpp\",\n- \"xutility\": \"cpp\"\n- }\n-}\n\\ No newline at end of file\n"
}
] | C | MIT License | pimoroni/32blit-beta | Remove accidental .vscode/settings.json |
510,640 | 29.01.2020 10:53:34 | 0 | 81b0dcb061437008dd9f6c9d6e9be5bfbd4f8953 | Remove redundant dac_buffer | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "#include \"stdarg.h\"\nusing namespace blit;\n-__attribute__((section(\".dma_data\"))) uint16_t dac_buffer[DAC_BUFFER_SIZE];\n-\nextern char __ltdc_start;\nextern char __fb_start;\ne... | C | MIT License | pimoroni/32blit-beta | Remove redundant dac_buffer |
510,640 | 29.01.2020 11:33:09 | 0 | 4120de091ffc79abaa99bba75b888b54ad8587da | Add logarithmic "perceptual" volume control
This change converts an internal "global_volume" value into a logarithmic volume applied to blit::audio::volume
Seems to have a sudden jump in amplitude when first changing the volume, which may need investigating. | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -37,11 +37,10 @@ FATFS filesystem;\nFRESULT SD_Error = FR_INVALID_PARAMETER;\nFRESULT SD_FileOpenError = FR_INVALID_PARAMETER;\n-uint32_t total_samples = 0;\n-uint8_t dma_status =... | C | MIT License | pimoroni/32blit-beta | Add logarithmic "perceptual" volume control
This change converts an internal "global_volume" value into a logarithmic volume applied to blit::audio::volume
Seems to have a sudden jump in amplitude when first changing the volume, which may need investigating. |
510,640 | 01.02.2020 00:26:34 | 0 | 34981bb093e467aadab5d5f6b721271840886165 | Fix render() no longer called by tick() | [
{
"change_type": "MODIFY",
"old_path": "32blit-sdl/System.cpp",
"new_path": "32blit-sdl/System.cpp",
"diff": "@@ -187,6 +187,7 @@ Uint32 System::mode() {\n}\nvoid System::update_texture(SDL_Texture *texture) {\n+ blit::render(::now());\nif (_mode == blit::screen_mode::lores) {\nSDL_UpdateTexture(tex... | C | MIT License | pimoroni/32blit-beta | Fix render() no longer called by tick() |
510,670 | 01.02.2020 12:10:15 | 0 | 373c7b918e143aee78df9b957eca1cc9a4125b9a | Refactor all display code into single location | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/CMakeLists.txt",
"new_path": "32blit-stm32/CMakeLists.txt",
"diff": "@@ -53,6 +53,7 @@ list(APPEND SOURCES\nSrc/usbd_conf.c\nSrc/usbd_desc.c\nSrc/usbd_cdc_if.c\n+ Src/display.c\nSrc/gpio.c\nSrc/adc.c\nSrc/dac.c\n@@ -62,7 +63,6 @@ list(APPEND SOURC... | C | MIT License | pimoroni/32blit-beta | Refactor all display code into single location |
510,663 | 01.02.2020 13:53:45 | 0 | 78134c4961192f1f53a22c483daaacc1b57ff715 | Create ChromeOS | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "docs/ChromeOS",
"diff": "+Chrome OS (Chromebook) uses a Linux virtual machine to run Linux software. Once the virtual machine is set up you can follow the instructions in the root README.md and the Linux.md\n+\n+# Installing the Linux Beta\n+\n+... | C | MIT License | pimoroni/32blit-beta | Create ChromeOS |
510,659 | 01.02.2020 14:25:06 | 0 | 49b8e15453c3d9405cabd12ac03f4da32fb59a8d | Pass strings by const reference
Passing by value necessitates a copy,
which in turn requires a call to `new` and an O(n) copy operation.
Passing by reference avoids the copy. | [
{
"change_type": "MODIFY",
"old_path": "32blit/engine/utility.cpp",
"new_path": "32blit/engine/utility.cpp",
"diff": "@@ -20,7 +20,7 @@ namespace utility {\nFILE_READ_ERROR = -3,\n};\n- tga tga_header(std::string file) {\n+ tga tga_header(const std::string & file) {\nFILE *fp = fopen(file.c_str(), \... | C | MIT License | pimoroni/32blit-beta | Pass strings by const reference
Passing by value necessitates a copy,
which in turn requires a call to `new` and an O(n) copy operation.
Passing by reference avoids the copy. |
510,659 | 01.02.2020 14:28:13 | 0 | 7feb5c4f649bdd3daae6a40aac1336a7a9d1757e | Add const char pointer overloads
Adding these overloads avoids the allocation of a `std::string` when using a string literal.
This _shouldn't_ add any overhead because a good compiler _should_ inline the `const std::string &` overload. | [
{
"change_type": "MODIFY",
"old_path": "32blit/engine/utility.cpp",
"new_path": "32blit/engine/utility.cpp",
"diff": "@@ -20,8 +20,8 @@ namespace utility {\nFILE_READ_ERROR = -3,\n};\n- tga tga_header(const std::string & file) {\n- FILE *fp = fopen(file.c_str(), \"rb\");\n+ tga tga_header(const char... | C | MIT License | pimoroni/32blit-beta | Add const char pointer overloads
Adding these overloads avoids the allocation of a `std::string` when using a string literal.
This _shouldn't_ add any overhead because a good compiler _should_ inline the `const std::string &` overload. |
510,640 | 01.02.2020 18:55:10 | 0 | 0a99a847b912115a23685500e22e77f788f7b67e | Support compile with mingw toolchain | [
{
"change_type": "MODIFY",
"old_path": "tools/32Blit.cpp",
"new_path": "tools/32Blit.cpp",
"diff": "@@ -51,7 +51,9 @@ const char *getFileName(const char *pszPath)\n#ifdef WIN32\n+#ifndef __MINGW32__\ntypedef long ssize_t;\n+#endif\nHANDLE hComm = INVALID_HANDLE_VALUE;\nOVERLAPPED osRX = { 0 };\nOVER... | C | MIT License | pimoroni/32blit-beta | Support compile with mingw toolchain |
510,640 | 01.02.2020 19:06:37 | 0 | 1b52366d0ac45adfaf3b750608ff05c2441a6785 | Move loader source to src, fix another compile quirk | [
{
"change_type": "MODIFY",
"old_path": "CMakeLists.txt",
"new_path": "CMakeLists.txt",
"diff": "@@ -8,5 +8,5 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL Generic)\nendif()\nif(NOT ${CMAKE_SYSTEM_NAME} STREQUAL Generic AND NOT EMSCRIPTEN)\n- add_subdirectory(tools)\n+ add_subdirectory(tools/src)\nendif()\n"
... | C | MIT License | pimoroni/32blit-beta | Move loader source to src, fix another compile quirk |
510,640 | 01.02.2020 20:49:09 | 0 | f096c61f01909eaf65d08a000fdf195b9431ee59 | Fix switch_exeecution | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -87,14 +87,7 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {\n}\nvoid blit_tick() {\n- blit::LED.b++;\n- blit_update_led();\n-\nif(display::needs_render) {\n-\n- ... | C | MIT License | pimoroni/32blit-beta | Fix switch_exeecution |
510,670 | 01.02.2020 21:15:10 | 0 | 72eef0ce2733a06dd294d4e42c9b897fc42ac207 | fix pixel offset on screen | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/display.c",
"new_path": "32blit-stm32/Src/display.c",
"diff": "@@ -168,7 +168,7 @@ namespace display {\nLTDC->IER = LTDC_IT_TE | LTDC_IT_FU;\n// configure ltdc layer\n- rect window(0, 0, 320, 240);\n+ rect window(1, 1, 320, 240);\nLTDC_Layer1-... | C | MIT License | pimoroni/32blit-beta | fix pixel offset on screen |
510,640 | 01.02.2020 21:21:29 | 0 | 744032084f8b9ff5979f19d5b8033e6dac7e47c6 | Remove firmware concerns from hardware-test | [
{
"change_type": "MODIFY",
"old_path": "examples/hardware-test/hardware-test.cpp",
"new_path": "examples/hardware-test/hardware-test.cpp",
"diff": "@@ -121,31 +121,6 @@ void render(uint32_t time) {\n(float)((sin(blit::now() / 100.0f) + 1) / 2.0f)\n);\n- if (dpad_u) {\n- blit::backlight += 1.0f / 256... | C | MIT License | pimoroni/32blit-beta | Remove firmware concerns from hardware-test |
510,640 | 01.02.2020 22:35:15 | 0 | fb4217547d4b70e5aa861381bfed917cfe950f32 | Debug code for ADC readings | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -147,6 +147,17 @@ void blit_enable_amp() {\nHAL_GPIO_WritePin(AMP_SHUTDOWN_GPIO_Port, AMP_SHUTDOWN_Pin, GPIO_PIN_SET);\n}\n+void hook_render(uint32_t time) {\n+ ::render(time);\n+... | C | MIT License | pimoroni/32blit-beta | Debug code for ADC readings |
510,640 | 01.02.2020 22:44:40 | 0 | 17f21b216ed7f2e3e195e996148d5c562eb39c10 | Disable debug hook on render | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -148,6 +148,10 @@ void blit_enable_amp() {\n}\nvoid hook_render(uint32_t time) {\n+ /*\n+ Replace blit::render = ::render; with blit::render = hook_render;\n+ and do silly on-scre... | C | MIT License | pimoroni/32blit-beta | Disable debug hook on render |
510,670 | 02.02.2020 12:47:45 | 0 | 8049527ca0f10ce42a88ace01e84ba20e2b6efb5 | Tidy up of pin configuration | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/gpio.cpp",
"new_path": "32blit-stm32/Src/gpio.cpp",
"diff": "namespace gpio {\n+ void init_pin(GPIO_TypeDef *port, uint32_t pin, uint32_t mode, uint32_t pull, uint32_t speed = 0, uint32_t alt = 0) {\n+ GPIO_InitTypeDef gpio = {pin, mode, pull,... | C | MIT License | pimoroni/32blit-beta | Tidy up of pin configuration |
510,670 | 02.02.2020 17:18:49 | 0 | 4233c05033d18790b77e00413f4efb5f243cfff2 | Move all audio related functionality into sound.cpp | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/CMakeLists.txt",
"new_path": "32blit-stm32/CMakeLists.txt",
"diff": "@@ -56,8 +56,8 @@ list(APPEND SOURCES\nSrc/usbd_cdc_if.c\nSrc/display.cpp\nSrc/gpio.cpp\n+ Src/sound.cpp\nSrc/adc.c\n- Src/dac.c\nSrc/debug.c\nSrc/dma.c\nSrc/hrtim.c\n"
},
{
... | C | MIT License | pimoroni/32blit-beta | Move all audio related functionality into sound.cpp |
510,670 | 03.02.2020 10:45:04 | 0 | de1ea1ee2abad5dd56385345a93079c112c57c42 | Removed audio namespace | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -180,7 +180,7 @@ void blit_init() {\nblit::debugf = blit_debugf;\nblit::now = HAL_GetTick;\nblit::random = HAL_GetRandom;\n- blit::audio::volume = (uint16_t)(65535.0f * log(1.0f +... | C | MIT License | pimoroni/32blit-beta | Removed audio namespace |
510,641 | 03.02.2020 13:11:05 | 0 | 376b0f566ff970720bf623a522f9a42291c8bc57 | Correct audio_voice to AudioVoice | [
{
"change_type": "MODIFY",
"old_path": "examples/scrolly-tile/scrolly-tile.cpp",
"new_path": "examples/scrolly-tile/scrolly-tile.cpp",
"diff": "@@ -399,7 +399,7 @@ void new_game() {\nvoid init(void) {\nset_screen_mode(lores);\n#ifdef __AUDIO__\n- channels[0].voices = audio_voice::NOISE;\n+ channels[... | C | MIT License | pimoroni/32blit-beta | Correct audio_voice to AudioVoice |
510,641 | 03.02.2020 13:13:57 | 0 | 23c9fb208df344059cd0636b81cc8992a511508f | Change fb to screen and audio_voice to AudioVoice | [
{
"change_type": "MODIFY",
"old_path": "examples/audio-test/audio-test.cpp",
"new_path": "examples/audio-test/audio-test.cpp",
"diff": "@@ -31,21 +31,21 @@ void init() {\n// configure voices\n// melody track\n- channels[0].voices = audio_voice::TRIANGLE | audio_voice::SQUARE;\n+ channels[0].voices =... | C | MIT License | pimoroni/32blit-beta | Change fb to screen and audio_voice to AudioVoice |
510,641 | 03.02.2020 13:32:52 | 0 | 390e0b1ec7a04fe0ac8af56f0774a5e8e8ef735f | Apply refactor to CamelCase | [
{
"change_type": "MODIFY",
"old_path": "examples/serial-debug/serial-debug.cpp",
"new_path": "examples/serial-debug/serial-debug.cpp",
"diff": "@@ -19,7 +19,7 @@ using namespace blit;\nvoid init() {\n- set_screen_mode(screen_mode::lores);\n+ set_screen_mode(ScreenMode::lores);\n}\n@@ -28,15 +28,15 @... | C | MIT License | pimoroni/32blit-beta | Apply refactor to CamelCase |
510,641 | 03.02.2020 14:01:22 | 0 | 39d2f9d2d1ebb74b046d50721b1d44496f48a2d1 | Apply CamelCase refactor to text example | [
{
"change_type": "MODIFY",
"old_path": "examples/text/text.cpp",
"new_path": "examples/text/text.cpp",
"diff": "#include \"text.hpp\"\n+using namespace blit;\n+\nbool variable_width = true;\n-uint32_t prev_buttons = blit::buttons;\n-blit::text_align alignment = blit::text_align::top_left;\n+uint32_t... | C | MIT License | pimoroni/32blit-beta | Apply CamelCase refactor to text example |
510,640 | 03.02.2020 14:14:30 | 0 | 9c0a6076b40da61a09d73c26799203797a19661f | Refactor text_align to TextAlign | [
{
"change_type": "MODIFY",
"old_path": "32blit/graphics/surface.hpp",
"new_path": "32blit/graphics/surface.hpp",
"diff": "@@ -32,7 +32,7 @@ namespace blit {\n};\n#pragma pack(pop)\n- enum text_align {\n+ enum TextAlign {\nleft = 0b0000,\ncenter_h = 0b0100,\nright = 0b1000,\n@@ -114,8 +114,8 @@ names... | C | MIT License | pimoroni/32blit-beta | Refactor text_align to TextAlign |
510,640 | 03.02.2020 14:27:37 | 0 | a871f844c3e42c95369f64b25fd6960e8bd0586b | Refactor flash-loader for CamelCase | [
{
"change_type": "MODIFY",
"old_path": "firmware/flash-loader/flash-loader.cpp",
"new_path": "firmware/flash-loader/flash-loader.cpp",
"diff": "@@ -36,7 +36,7 @@ void update(uint32_t time)\n// Init() Register command handlers\nvoid FlashLoader::Init()\n{\n- set_screen_mode(screen_mode::hires);\n+ se... | C | MIT License | pimoroni/32blit-beta | Refactor flash-loader for CamelCase |
510,640 | 03.02.2020 16:25:53 | 0 | 2648041f7f948a967bf8ea6a3e70d4a26860206a | Fix Switch Exec | [
{
"change_type": "MODIFY",
"old_path": "32blit-stm32/Src/32blit.c",
"new_path": "32blit-stm32/Src/32blit.c",
"diff": "@@ -598,7 +598,7 @@ void blit_switch_execution(void)\nHAL_ADC_Stop_DMA(&hadc3);\n// Stop the audio\n-// HAL_TIM_Base_Stop_IT(&htim6);\n+ HAL_TIM_Base_Stop_IT(&htim6);\nHAL_DAC_Stop(&... | C | MIT License | pimoroni/32blit-beta | Fix Switch Exec |
510,640 | 03.02.2020 16:29:26 | 0 | 6d3ad6e0b5bec5fe9204bd40782cf8ce6ce51840 | Lots of junk added to shmup | [
{
"change_type": "MODIFY",
"old_path": "examples/shmup/shmup.cpp",
"new_path": "examples/shmup/shmup.cpp",
"diff": "@@ -13,10 +13,48 @@ using namespace blit;\n#define SHOT_LONG_RED Rect(6, 0, 4, 1)\n#define SHOT_BIG_PINK Rect(10, 0, 2, 1)\n+// These lookup tables include an offset in pixels\n+// as ... | C | MIT License | pimoroni/32blit-beta | Lots of junk added to shmup |
510,640 | 03.02.2020 16:29:45 | 0 | 85dde1b778211f4bf90b8d0e7796fbdfce538861 | Prep text for additional demos | [
{
"change_type": "MODIFY",
"old_path": "examples/text/text.cpp",
"new_path": "examples/text/text.cpp",
"diff": "@@ -6,27 +6,60 @@ bool variable_width = true;\nuint32_t prev_buttons = buttons;\nTextAlign alignment = TextAlign::top_left;\n+std::string alignment_to_string(TextAlign alignment) {\n+ swit... | C | MIT License | pimoroni/32blit-beta | Prep text for additional demos |
510,640 | 03.02.2020 16:29:54 | 0 | 42758cea63bbb4e854e4622984808ebe81de6f64 | Add 32Blit tilemap and sprite assets
Thank you to our pixel-wrangler s4m_ur4i for working with us to create these glorious assets.
May your games be forever pixeley and awesome! | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "assets/README.md",
"diff": "+# 32Blit Assets\n+\n+## Artists\n+\n+### Sam (@s4m_ur4i)\n+\n+Our Space Shooter, Platformer, Dingbads, Pirates and Top Down Shooter spritesheets have been lovingly crafted by Sam.\n+\n+You can find him and his work a... | C | MIT License | pimoroni/32blit-beta | Add 32Blit tilemap and sprite assets
Thank you to our pixel-wrangler s4m_ur4i for working with us to create these glorious assets.
May your games be forever pixeley and awesome! |
510,641 | 03.02.2020 20:41:40 | 0 | b6ea5df8a53b2ddbbf790d82e0ef3c2552a167e4 | Improve Windows WSL instructions | [
{
"change_type": "MODIFY",
"old_path": "docs/Windows.md",
"new_path": "docs/Windows.md",
"diff": "# Building & Running on Win32 (WSL or MinGW)\n-## Setting things up\n+These instructions assume a basic knowledge of the Linux command-line, installing tools and compiling code from source.\n+\n+If you'... | C | MIT License | pimoroni/32blit-beta | Improve Windows WSL instructions |
510,640 | 03.02.2020 22:00:12 | 0 | 2683b8dd00827d68195d089cbef434af3197e845 | Remove defunct wsl-build.sh | [
{
"change_type": "DELETE",
"old_path": "32blit-sdl/wsl-build.sh",
"new_path": null,
"diff": "-#!/bin/bash\n-SDL2_BINPATH=\"/opt/sdl2-win64/bin\"\n-\n-# Awful helper to invoke cross compiling under WSL with specific SDL2 install path\n-# should probably be more flexible with sensible defaults and par... | C | MIT License | pimoroni/32blit-beta | Remove defunct wsl-build.sh |
510,640 | 03.02.2020 22:28:54 | 0 | dff4ef940bf60a3d897eaf1c1e6eeee1d8850eb1 | Indicate that WSL docs are for advanced users | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -26,9 +26,11 @@ For more information about how to build on the various systems, refer to the pla\nRefer to the OS specific docs:\n-* [Linux users](docs/Linux.md)\n-* [Windows users](docs/Windows.md) or if you ar... | C | MIT License | pimoroni/32blit-beta | Indicate that WSL docs are for advanced users |
510,640 | 03.02.2020 22:46:32 | 0 | 1e3dac8ca7fc9d63a42a2d01edd496dfb989807b | Improve docs, document flash loader firmware build & install | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -44,19 +44,13 @@ The `32blit` directory contains the API/engine for developing your game. This en\n## 32blit-sdl\n-The `32blit-sdl` directory contains an SDL2 HAL for 32blit compatible with Linux and Linux-on-Wi... | C | MIT License | pimoroni/32blit-beta | Improve docs, document flash loader firmware build & install |
510,640 | 04.02.2020 10:56:08 | 0 | dcdd0566a43fb675505354c297bd38a564ade042 | Various audio improvements
Switch to an ADSR state machine to avoid notes blipping at 65535ms (for
Rename audio voices to waveforms. | [
{
"change_type": "MODIFY",
"old_path": "32blit/engine/audio.cpp",
"new_path": "32blit/engine/audio.cpp",
"diff": "@@ -12,7 +12,7 @@ namespace blit {\nuint32_t frame_ms = (1000 << 16) / 22050;\nuint16_t volume = 0xffff;\n- int16_t sine_voice[256] = {0,804,1608,2411,3212,4011,4808,5602,6393,7180,7962,... | C | MIT License | pimoroni/32blit-beta | Various audio improvements
Switch to an ADSR state machine to avoid notes blipping at 65535ms (for #113)
Rename audio voices to waveforms. |
510,640 | 04.02.2020 13:41:20 | 0 | 09da64efd5b9404728ae8135aa3bbca111cbdb99 | Switch envelope generator to frame timing
This change switches the envelope generator from attempting to work in milliseconds, to being hooked directly to the frame counter.
Each ADSR state is now timed in frames, and the target frame times for state-machine advance are calculated at the start of each phase. | [
{
"change_type": "MODIFY",
"old_path": "32blit/engine/audio.cpp",
"new_path": "32blit/engine/audio.cpp",
"diff": "namespace blit {\nuint32_t sample_rate = 22050;\n- uint32_t frame_ms = (1000 << 16) / 22050;\nuint16_t volume = 0xffff;\nconst int16_t sine_waveform[256] = {0,804,1608,2411,3212,4011,480... | C | MIT License | pimoroni/32blit-beta | Switch envelope generator to frame timing
This change switches the envelope generator from attempting to work in milliseconds, to being hooked directly to the frame counter.
Each ADSR state is now timed in frames, and the target frame times for state-machine advance are calculated at the start of each phase. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.