Repository navigation
Add the Waveshare ESP32-S31-Touch-LCD-4.3C board config - #724
Merged
Merged
Conversation
… PCF85063 and BQ27220 drivers
Contributor
Author
|
Checked on the board since the PR was opened: the microSD slot mounts a 7.7 GB FAT card through |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a board config for the Waveshare ESP32-S31-Touch-LCD-4.3C, modelled on the ESP32-S3-Touch-LCD-4.3's, and three drivers the board needs:
es8389(the audio codec),pcf85063(the RTC) andbq27220(the fuel gauge).board_configbrings up the 800x480 RGB panel and the GT911.board_peripheralsdescribes the rest of the board: speaker out and the two mics through the ES8389, the SD slot, the QMI8658 asaccelerometerandgyroscope,rtc,battery,i2c,led,boot_button,can,rs485,wlanandble. There is nousb_devicerole because the S31 firmware leaves USB device mode out for now.Two things about the codec are worth knowing. The board gives it no MCLK, so the driver clocks it from BCLK. Its ADC only gives clean samples with 32-bit I2S slots, so
pcm_inreads 32-bit frames and narrows them to 16 bits.What was run
All of this ran on the board, on the ESP32-S31 firmware from PyDevices/omnipython-builds#581.
tools/mark_tested.pypassed every check it ran and wrotetested.json.canandsdcardwere skipped.display_driver. A camera photo showed the colours in the right order.touch_read()returned no points.pcm_outand throughaudio_out. A microphone next to the board recorded 1000 Hz, about 50 dB above the room. While the tone played, the codec's registers showed the DAC unmuted and the amplifier enabled; afterclose()the amplifier was off.pcm_inat 48 kHz stereo. A 700 Hz tone from a nearby speaker lifted both channels about tenfold over the quiet room, with the peak in the 700 Hz bin. Opening the speaker while the mics held I2S raised theOSErrorthe config gives for that case.on()andoff(). The BOOT button read released. GPIO48-53 on the header drove high and low.Not verified
canraisesNotImplementedError, because this firmware has nomachine.CAN.rs485opens and sends, but nothing was listening on the bus.