mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
b5f59efa8e
I/O setup. - the pd() module has a new method (board) and gets it CPU, platform and board name directly from the build system (command line macros). It's much easier to work like this. - the samples (examples/) were updated to check pd.board() rather than pd.platform()/pd.cpu(), which is a much more logical way to do things, since it ties the sample to a specific I/O configuration, not with a CPU. - updated PWM code for AT91SAM7X, now the "piano" example works for both LM3Sxxxx and AT91SAM7X256. - added 3 new methods to the PIO module: pullup(), pulldown(), ad nopullup(), their meaning is obvious.