summaryrefslogtreecommitdiff
path: root/shared-module
AgeCommit message (Collapse)Author
2020-08-12sharpdisplay: Make PARTIAL_UPDATES unconditionalJeff Epler
2020-08-12Update shared-module/framebufferio/FramebufferDisplay.hJeff Epler
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2020-08-12Fix build errors when SHARPDISPLAY && !RGBMATRIXJeff Epler
2020-08-12sharpmemory: Implement support for Sharp Memory Displays in framebufferioJeff Epler
2020-08-12framebufferio: add dirty row trackingJeff Epler
2020-08-12framebufferio: Add getters for remaining displayio_display_core_construct ↵Jeff Epler
arguments .. and introduce a convenience macro that helps many of them be required (if their values match defaults or are inapplicable)
2020-08-12framebufferio: Check early if framebuffer is big enoughJeff Epler
2020-08-12framebufferio: add "first pixel offset" and "row stride"Jeff Epler
2020-08-12framebufferio: handle sharp memory displaysJeff Epler
A bit of cheating; we need to add a protocol getter for reverse_bytes_in_word
2020-08-12framebufferio: Handle 1 (tested), 2, and 4 bpp displaysJeff Epler
2020-08-12framebufferio: Set type to none when releasingJeff Epler
This avoids the message "Too many displays in use" when they are released directly, rather than via release_displays().
2020-08-12framebufferio: Don't call swapbuffers unnecessarilyJeff Epler
2020-08-12framebufferio: Fix crash calling unimplemented get_brightnessJeff Epler
If set_brightness was implemented but get_brightness wasn't, this would hard fault
2020-07-29Merge pull request #3223 from dhalbert/unmount-before-resetScott Shawcroft
storage.erase_filesystem(): disconnect from USB and wait 1 second before resetting
2020-07-28use top-left heuristic for vectorio.PolygonKenny
this flips the bottom-right style to top-left which is at least kind of normal. A 2x2 square at (0,0) would be defined like (0,0), (3,0), (3,3), (0,3) Which seems kind of surprising but at least less bonkers than that square being defined at (1,1), which is the current behavior.
2020-07-28storage.erase_filesystem(): unmount and wait 1 second before resettingDan Halbert
2020-07-24Merge pull request #3099 from hierophect/stm32-timer-allocatorhierophect
STM32: Add timer allocator, PulseIO adjustments
2020-07-22Merge branch 'main' into memmonitorScott Shawcroft
2020-07-22Claim USB pins at startup to prevent overwritesLucian Copeland
2020-07-20vectorio: fix VectorShape non-transposed pixel placementKenny
Fixes https://github.com/adafruit/circuitpython/issues/3170 The absolute transform needs to be subtracted in all cases, not only when the coordinate system is transposed.
2020-07-20Merge pull request #3175 from jepler/background-callback-bugsScott Shawcroft
Background callback bugfixes
2020-07-20pre-allocate list of known sizeKenny
2020-07-20framebufferio: Handle auto refresh flag at resetJeff Epler
if we don't set the flag via accessor fn the tick enable might become wrong
2020-07-19fix 3169: Polygon.points propertyKenny
The getter for vectorio.Polygon#points was not updated with the data type change of the stored points list. This moves the implementation to shared_module and updates the data type to reflect the actual state.
2020-07-17Add ignore() and fix docsScott Shawcroft
2020-07-17Get AllocationAlarm workingScott Shawcroft
2020-07-17Add memorymonitor moduleScott Shawcroft
2020-07-15displayio, framebufferio: Enable supervisor tick when a display is auto-refreshJeff Epler
This is a step towards restoring the efficiency of the background tasks
2020-07-15MP3Decoder: take advantage of background callbackJeff Epler
Before this, the mp3 file would be read into the in-memory buffer only when new samples were actually needed. This meant that the time to read mp3 content always counted against the ~22ms audio buffer length. Now, when there's at least 1 full disk block of free space in the input buffer, we can request that the buffer be filled _after_ returning from audiomp3_mp3file_get_buffer and actually filling the DMA pointers. In this way, the time taken for reading MP3 data from flash/SD is less likely to cause an underrun of audio DMA. The existing calls to fill the inbuf remain, but in most cases during streaming these become no-ops because the buffer will be over half full.
2020-07-06Add license to some obvious files.Diego Elio Pettenò
2020-07-01Merge pull request #3083 from tannewt/esp32s2_busioJeff Epler
Add busio support for the ESP32-S2
2020-06-26sdcardio: implement new library for SD card I/OJeff Epler
Testing performed: That a card is successfully mounted on Pygamer with the built in SD card slot This module is enabled for most FULL_BUILD boards, but is disabled for samd21 ("M0"), litex, and pca10100 for various reasons.
2020-06-24Switch SPI to polling DMA and enable displayioScott Shawcroft
2020-06-24Add UART supportScott Shawcroft
2020-06-22_pew: move to common-halJeff Epler
I noticed that this code was referring to samd-specific functionality, and isn't enabled except in one samd board (pewpew10). Move it. There is incomplte support for _pew in mimxrt10xx which then caused build errors; adding a #if guard to check for _pew being enabled fixes it. The _pew module is not likely to be important on mimxrt but I'll leave the choice to remove it to someone else.
2020-06-15remove debugging printsDan Halbert
2020-06-15Fix ScanEntry prefix matching for allDan Halbert
2020-06-10Issue #3014 - refresh after changing to transparentDavePutz
Adding self->needs_refresh = true; in common_hal_displayio_palette_make_opaque() and common_hal_displayio_palette_make_transparent()
2020-06-03Fix up end of file and trailing whitespace.Diego Elio Pettenò
This can be enforced by pre-commit, but correct it separately to make it easier to review.
2020-06-01audiomixer: Fix garbled playback when voice 0 is stopped, audio popsJeff Epler
There were two main problems - word_buffer was being filled as though with unsigned samples, but during mixing all samples are kept in signed mode - If the first buffer was stopped, the voices_active flag got set anyway, even though the output buffer wasn't initialized yet, so the samples were mixed with indeterminate data We also cover the case where no buffer was playing, and ensure the output buffer is filled. This now works much better. Tested on neotrellis m4 playing back 4 mp3 streams at a time in signed-16, 22050Hz
2020-05-24Allow setting RGBW pixels with RGB tuplesRoy Hooper
2020-05-22Simplify pixelbuf set_pixels functionGeorge Waters
2020-05-22Use mp_int_t for setting pixelbuf slice indicesGeorge Waters
When handling negative steps, start and stop need to be mp_int_t so they can be checked against a potential negative value during the for loop used to set the slice values.
2020-05-21Implement negative step for pixelbuf slicesGeorge Waters
2020-05-18Merge pull request #2837 from k0d/serial-debugScott Shawcroft
Add support for a debug console, such as ST-Link VCP.
2020-05-19Enable showing the console on a debug uartMark Olsson
2020-05-18remove a duplication in polygon.cwarriorofwire
2020-05-18vectorio: speed up polygonwarriorofwire
This change takes polygon from 126k pixels per second fill to 240k pps fill on a reference 5 point star 50x66px polygon, updating both location and shape at 10hz. Tested on an m4 express feather. As a curiosity, the flat-out fill rate of a shape whose get_pixel is `return 0;` fills just shy of 375k pixels per second.
2020-05-13Gamepad & GamepadShift: Enable ticks while object existsJeff Epler
Otherwise, button presses might not be noticed.
2020-05-12add performance measurement to VectorShapewarriorofwire