aboutsummaryrefslogtreecommitdiff
path: root/bin (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-12-15build.sh: don't require DFPs, newer avr-libc doesn't need themSelene ToyKeeper1-6/+8
2023-12-05moved version string calculation to bin/version-string.shSelene ToyKeeper2-13/+59
Also updated the format slightly, so this rev is: `2023-12-03+2#1` +N for commits since tag #1 for dirty
2023-12-03updated MODELS, bin/models.py, and hw/BRANDS...Selene ToyKeeper1-4/+29
- changed column order to (model, mcu, name) - changed column sizes (auto-sized w/ 2 spaces between columns) - made it handle hex digits in model numbers - reserved 1900 to 2199 for years only, not model numbers - noted gChart and thefreeman sharing a brand ID
2023-12-02build-all: handle the case where "git describe" can't get any tagsSelene ToyKeeper1-0/+5
Resulting revision is "$MODEL-0.$HASH" where the hash is the commit short ID
2023-12-01added bin/make-release.sh to generate a .zip file ready for releaseSelene ToyKeeper1-0/+55
2023-11-30build-all.sh: re-indented, started organizing code into functionsSelene ToyKeeper1-75/+84
(still needs a proper rewrite, but at least the version.h code is in a separate function now)
2023-11-30changed version number to use the latest release tag instead of build dateSelene ToyKeeper2-5/+17
Before: 2023-11-30 (build date) After: 2023-10-31-98.1 (latest release tag + number of commits since + dirty flag)
2023-11-30oops, flashing script should actually flash ... not just echo a commandSelene ToyKeeper1-1/+1
2023-11-30made the avr32dd20 flashing script more universalSelene ToyKeeper1-5/+32
2023-11-19added dac-scale.py: short script to calculate avrdd DAC+Vref values from ↵Selene ToyKeeper1-0/+89
level_calc.py ramp data
2023-11-19added *unfinished* support for avr32dd20, plus a build target for a dev kitSelene ToyKeeper1-0/+13
ADC doesn't work yet. No voltage, no temperature. I need to do a lot of refactoring on the ADC code. :(
2023-11-10refactor checkpoint: splitting MCU-specific code into arch/$MCU.[ch]Selene ToyKeeper1-2/+2
Phew, that's a lot of changes! And there's still a lot more to do...
2023-11-10added md5sum to build-all.sh output per targetSelene ToyKeeper1-2/+5
(to make it easier to detect when builds did or didn't change)
2023-11-07shell script cleanup (fix lint warnings, remove unused scripts)Selene ToyKeeper15-82/+56
2023-11-07Changed bash and sh shebangs to /usr/bin/envIgor Bulekov5-5/+5
2023-11-06memesSelene ToyKeeper1-0/+2
2023-11-06build-all.sh: don't err when search term starts with a dashSelene ToyKeeper1-1/+1
2023-11-05help CI detect build failuresSelene ToyKeeper1-0/+1
made 'make' and 'build-all.sh' exit with an error on fail, so CI can hopefully detect it... and added an intentional source bug to make it fail for testing purposes
2023-11-04detect-mcu.sh: don't hang when MCU isn't found; exit with an error insteadSelene ToyKeeper1-0/+4
2023-11-04improved DFP setup and support:Selene ToyKeeper2-13/+54
- `./make dfp` downloads and installs Atmel DFPs for each supported MCU - build.sh detects and uses attiny or avrdd, and others are simple to add - updated setup info in /README.md ... also some other small documentation updates.
2023-11-03detect-mcu.sh: oops, that line of help text wasn't supposed to be executedSelene ToyKeeper1-1/+1
2023-11-03moved ATTINY and MODEL_NUMBER into $target/arch and $target/model,Selene ToyKeeper7-53/+95
and updated other scripts and files accordingly
2023-11-03moved variant builds under their parent, like "d4-219" -> "d4/219"Selene ToyKeeper1-4/+5
2023-11-03fixed compile scripts and added a "./make" wrapper for convenienceSelene ToyKeeper2-15/+24
(instead of a Makefile, which isn't really needed for this project)
2023-11-03renamed cfg.h -> anduril.h so each UI can have its own cfg (part 1)Selene ToyKeeper1-2/+2
(still need to update file contents afterward, but doing it in a separate commit so git can detect renames easier)
2023-11-02got things to compile again, renamed #includesSelene ToyKeeper2-15/+28
(also modified the build scripts to work with the new file structure)
2023-11-02reorganized project files (part 1)Selene ToyKeeper3-0/+179
(just moved files, didn't change the contents yet, and nothing will work without updating #includes and build scripts and stuff)
2023-10-30build.sh: use busybox-compatible grep argsSelene ToyKeeper1-1/+1
2023-07-21kludgy attempt to factor PWM rise/fall time into level_calc.pySelene ToyKeeper1-7/+38
(to reduce the ramp bumps at halfspeed / quarterspeed levels)
2023-05-30with each build, dump a .cpp file with the source after preprocessingSelene ToyKeeper1-1/+5
(for easier whole-program debugging)
2023-05-02bin/flash-1616.py: added shebang header and +x bitSelene ToyKeeper1-1/+3
2023-04-07merging gchart's changes, part 1...Selene ToyKeeper1-0/+76
+ added Sofirn LT1S Pro + added Sofirn SC21 Pro + added Wurkkos TS10 + added Wurkkos TS25 * small changes to other models * improved dual voltage support + added attiny1616 flashing python script w/ pymcuprog These changes are incomplete. It does not yet include: - extended simple UI - t1616 WDT reset detection - gchart's OUTPUT_MUX code (I plan to rewrite the entire tint system)
2022-04-28fixed level_calc.py when using --pwm with 4 args instead of 5Selene ToyKeeper1-1/+1
2022-04-14avrdude fails when .fuse section is included, so omit that when copying elf ↵Selene ToyKeeper1-1/+1
to hex
2021-11-13increased SP10 PWM speed as much as possible without making ramp bumpy, and ↵Selene ToyKeeper1-1/+7
made party strobe pulses much faster Reduced max PWM TOP to 3072, because 2048 wasn't enough and 4096 was more than necessary. Also, Ch1 lumens / 256 / ch2 lumens = 6, so 256 * 6 * 2 is the lowest value which allows ch1 to start at half of ch2's power. I tried 1536 initially, but it made the ramp visibly malformed at the channel boundary. However, 3072 seems about right. Implemented a non-linear PWM_TOP ramp-down in level_calc, to allow it to converge faster and reduce the number of levels with visible pulses. Added an option to keep the regulator chips on between strobe pulses, by keeping the LEDs at moon instead of turning completely off. This allows the SP10 party strobe to use much shorter, more consistent pulses.
2021-09-10added -mrelax to build.sh; saves ~330 bytes on t1634 buildsSelene ToyKeeper1-1/+1
(suggested by solrize) (doesn't seem to reduce size of t85 builds though)
2021-08-16fixed spurious warnings in level_calc on multi-channel lightsSelene ToyKeeper1-1/+3
(also fixed reported values being too low by a factor of channel.pwm_min)
2021-08-14clarified the new level_calc calculations a bit, experimented to make sure ↵Selene ToyKeeper1-26/+32
things are right
2021-08-12got PFM / dynamic PWM actually working on Noctigon KR4Selene ToyKeeper1-1/+1
(and also added "jump start moon" to it) (and generally finished adding dynamic PWM support to FSM)
2021-08-12made PWM TOP value configurable at command line in level_calc.py, and added ↵Selene ToyKeeper1-9/+70
a "dynamic PWM" feature (uses a different PWM TOP at each of the first N ramp levels, to increase resolution at bottom end of ramp)
2021-07-22give a more useful error message when t1616 files aren't installedSelene ToyKeeper1-2/+11
2021-04-01added attiny1616 flashing instructions, and made flash-tiny1616.sh ↵Selene ToyKeeper1-1/+12
configurable via environment variables
2021-04-01Added attiny1616 info to the README, and made bin/build.sh support more ↵Selene ToyKeeper1-3/+8
flexible. Set ATTINY_DFP environment variable in your shell to the location of the unzipped DFP files.
2020-12-18Add AVR 1-Series and t1616 board and scriptsGabriel Hart2-2/+6
2019-11-22added -fwhole-program gcc flag, suggested by Agro. Signficantly reduces ROM ↵Selene ToyKeeper1-1/+1
size! :)
2019-09-18added a compile flag to fix compatibility with GCC 7/8/9's new semantics for ↵Selene ToyKeeper1-2/+2
"inline" (should fix builds on newer compilers, I think)
2019-09-15level_calc.py: note the highest level for each channel before the next ↵Selene ToyKeeper1-0/+10
channel starts, so it'll be easier to identify the channel transition points
2019-08-28added arbitrary ramp shape powers to level_calc.py, to more easily hit ↵Selene ToyKeeper1-3/+11
specific values
2019-08-05added scripts to flash attiny1634, which were missing beforeSelene ToyKeeper2-0/+12
2019-08-05replaced deprecated avr-size with avr-objdump in build.shSelene ToyKeeper1-1/+3