1
0
mirror of https://github.com/richardghirst/PiBits.git synced 2024-11-28 12:24:11 +01:00
Commit Graph

77 Commits

Author SHA1 Message Date
Richard Hirst
15ee49c1f2 Use board revision to determine configuraion, as all boards report as BCM2835 since kernel 4.9; fixes Pi Zero. 2021-07-01 22:31:38 +01:00
Richard G Hirst
ff1d383a37 Add support for Pi 4B, and fix to build on latest Raspbian 2019-10-01 20:15:55 +01:00
Richard Hirst
4309bab2ca Fix for Pi3 and PiZero, by lifting bits from Stuart Shelton's version. 2018-05-01 21:13:45 +01:00
Richard Hirst
025715a605 Quick hack for Pi-Zero. 2017-08-23 20:44:16 +00:00
Richard Hirst
96014c804d Add support for B+, Pi2, and 4.1 kernels 2015-10-03 20:35:33 +01:00
Richard Hirst
bf455ee13b Add note to edit I2Cdev.cpp for Rev 2 boards 2014-02-11 19:51:26 +00:00
Richard Hirst
e62579ecb7 Merge branch 'master' of https://github.com/richardghirst/PiBits
Grab 6050 fix
2014-01-03 10:11:20 +00:00
Richard Hirst
2ea384c0c7 Oops, allow "=0" to turn off a servo output. 2014-01-03 10:09:59 +00:00
richardghirst
9ccfc5396d Merge pull request #23 from L31N/master
fixed bug in MPU6050_6Axis_MotionApps20.h function uint8_t MPU6050::dmpI...
2013-12-31 05:29:59 -08:00
Richard Hirst
e603254240 Rework to allow specifying cycle time and step increment, allow
relative movements, allow specifying pulse widths in microseconds
or as a percentage.
2013-12-31 12:32:25 +00:00
Daniel Belles
0a349ee600 fixed bug in MPU6050_6Axis_MotionApps20.h function uint8_t MPU6050::dmpInitialize() which caused an i2c-read error in case of an empty fifoCount. 2013-12-23 00:53:34 +01:00
Richard Hirst
1b78f9ad6b Fix special cases round setting widths of 0 and 100% 2013-11-28 21:03:51 +00:00
Richard Hirst
ab34d81e53 Add alternative command format in the style of "P1-12=100". Add /dev/servoblaster-cfg describing which pins are currently configured for use. 2013-09-29 16:17:40 +01:00
Richard Hirst
3f4804aa90 Allow servo IDs up to 31 so people can map servo IDs to P1 header pins if they wish. 2013-09-12 20:35:38 +01:00
Richard Hirst
29ce55de75 Major update to servod.c to handle up to 21 servos and to allow pulse widths between 0 and 100% 2013-09-11 22:00:00 +01:00
Richard Hirst
071fc182bc Add --idle-timeout and make install features for servod 2013-09-01 14:58:14 +01:00
pe1nnz
fdf979c383 oops 2013-04-08 19:56:11 +00:00
pe1nnz
f49d3cf2e4 fix for PiFmDma runtime error in latest 2013-02-09-wheezy-raspbian.
first fix is a type cast for which the sign was not correct
second fix is addition of a bit mask to deal with a reserved bit which now suddenly seems to be 1 (which was assumed to be 0)
2013-04-08 19:49:26 +00:00
Richard Hirst
93e24ac94a Add option to user space implementation to use PCM rather than PWM 2013-02-04 23:54:05 +00:00
Richard Hirst
79ecc1dedf Remove unwanted file 2013-01-29 21:18:27 +00:00
Richard Hirst
2996e0fd2d Added the MPU6050 demo code 2013-01-29 21:16:52 +00:00
Richard Hirst
ac658da6f9 Add first cut at a user space implementation 2013-01-24 20:04:46 +00:00
Richard Hirst
2190b84df4 Rebuild moduel for Linux raspberrypi 3.6.11+ #358 PREEMPT 2013-01-20 12:01:42 +00:00
Richard Hirst
8381e67ec2 Code to use an optical mouse as a scanner 2013-01-12 21:02:47 +00:00
Dan Ankers
1cee99150d Represent frequency and deviation in PyFmDma as #defines instead of magic numbers 2012-12-18 11:53:11 +00:00
Richard Hirst
6f2ff5fb6f Add warning for PiFmDma. 2012-12-17 22:17:23 +00:00
Richard Hirst
a4ee68bb3f Make it able to read stdin if no file provided. 2012-12-17 22:13:03 +00:00
Richard Hirst
2a8e0b8f5f Added PiFmDma 2012-12-17 18:27:49 +00:00
Richard Hirst
3b93b50bdb Initial version of FM transmitter, with DMA support 2012-12-17 18:26:05 +00:00
Richard Hirst
1a3f7c10a0 Add idle_timeout module parameter which automatically turns a servo
control line off some period after the last command.
2012-12-15 13:29:30 +00:00
Richard Hirst
e8bdd9054b Added note about conflicts with PWM audio 2012-12-02 10:28:25 +00:00
Richard Hirst
d33bcca5a8 Clarified mapping between servo numbers, GPIO pins and P1 header pins 2012-12-02 10:16:09 +00:00
Richard Hirst
a660948600 Fix PWM initialisation 2012-12-02 10:03:29 +00:00
Richard Hirst
0cb5728be8 Add debug utility 2012-11-25 00:27:10 +00:00
Richard Hirst
f73e2a47f4 Fix bug in read() calculating data length 2012-11-23 22:56:37 +00:00
Richard Hirst
718ff6e4be Fix description of 'cat /dev/servoblaster' 2012-11-23 22:36:21 +00:00
Richard Hirst
fe63b9899e Rework to process commands as they are issued, rather than on close() 2012-11-23 22:31:42 +00:00
Richard Hirst
4dfdf11b7b Merge branch 'dev_read' of https://github.com/rmallins/PiBits 2012-11-23 15:45:26 +00:00
Robin Mallinson
e59ad99d57 Change dev_read() to output data suitable for direct write back through the dev file. 2012-11-21 22:46:23 +00:00
Robin Mallinson
e712bd86ba All works as intended now. Commands can be written partially, and a single
write to the device file may contain multiple commands.
To achieve both of these the driver now only parses the commands on
dev_close().
2012-11-21 03:15:12 +00:00
Robin Mallinson
0439809e27 Use max_idx rather than hardcoded data. 2012-11-21 01:48:14 +00:00
Robin Mallinson
1b8dbeed21 Increase space available for cmd_str ready for taking multiple commands in one go. 2012-11-21 01:07:17 +00:00
Robin Mallinson
ce367d489a Factor out process_command_string() 2012-11-21 01:00:36 +00:00
Robin Mallinson
983e36f7c1 Following test and bug fix code now works as intended on partial writes. 2012-11-21 00:48:27 +00:00
Robin Mallinson
b1bb608d4c Allow dev_write to work per-process. 2012-11-18 23:35:32 +00:00
Robin Mallinson
ef87ef88a7 Add code to allow dev_write to cope with partial writes (as will sometimes
occur when using languages such as python to write to the dev file).
Currently static data so same for all processes.
2012-11-18 23:15:35 +00:00
Robin Mallinson
b14044eba1 Refactor dev_write prior to allowing it to take partial strings. 2012-11-18 21:52:28 +00:00
Robin Mallinson
e993a088eb Change dev_read to use per-process data. 2012-11-18 21:12:36 +00:00
Robin Mallinson
38101f8a62 fix dumb typo 2012-11-18 14:57:55 +00:00
Robin Mallinson
90dfe77fd5 Sketch out temporary data 2012-11-18 14:55:27 +00:00