Skip to content

Commit

Permalink
Merge pull request #61 from vroland/waveforms
Browse files Browse the repository at this point in the history
Vendor Waveforms and Library Refactoring
  • Loading branch information
vroland committed Mar 16, 2021
2 parents e04901b + e317535 commit c1740ad
Show file tree
Hide file tree
Showing 114 changed files with 150,118 additions and 79,552 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ examples/mpd_status/main/wifi_config.h
/.idea/
*.kicad_pcb-bak
*.sch-bak
eink_*.h
eink_*.json
fp-info-cache
.cache
__pycache__
examples/weather/components
sdkconfig
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Rules for generating waveform and font headers from raw data.

SUPPORTRED_DISPLAYS := ED060SC4 ED097OC4 ED097TC2 ED047TC1 ED133UT2

# Generate 16 grascale update waveforms + epdiy special waveforms
EXPORTED_MODES ?= 1,2,5,16,17

# Generate waveforms in room temperature range
EXPORT_TEMPERATURE_RANGE ?= 15,35

# the default headers that should come with the distribution
default: \
$(patsubst %,src/epd_driver/waveforms/epdiy_%.h,$(SUPPORTRED_DISPLAYS))

clean:
rm src/epd_driver/waveforms/epdiy_*.h
rm src/epd_driver/waveforms/eink_*.h

src/epd_driver/waveforms/epdiy_%.h: src/epd_driver/waveforms/epdiy_%.json
python3 scripts/waveform_hdrgen.py \
--export-modes $(EXPORTED_MODES) \
--temperature-range $(EXPORT_TEMPERATURE_RANGE) \
epdiy_$* < $< > $@

src/epd_driver/waveforms/eink_%.h: src/epd_driver/waveforms/eink_%.json
python3 scripts/waveform_hdrgen.py \
--export-modes $(EXPORTED_MODES) \
--temperature-range $(EXPORT_TEMPERATURE_RANGE) \
eink_$* < $< > $@

src/epd_driver/waveforms/epdiy_%.json:
python3 scripts/epdiy_waveform_gen.py $* > $@

.PHONY: default
452 changes: 452 additions & 0 deletions boards.local.txt

Large diffs are not rendered by default.

0 comments on commit c1740ad

Please sign in to comment.