Use short enums
Big refactor of time & gpio modules to reduce SRAM usage