Martino Facchin
92a05d2e25
USB libraries: replace non-portable u8 with uint8_t
2015-09-04 16:12:56 +02:00
Arturo Guadalupi
3f28c2452a
Added Ethernet.maintain() to examples
...
According to #3634 I added the Ethernet.maintain to examples:
Webserver
UdpNtpClient
DhcpChatServer
DhcpAddressPrinter
2015-09-03 09:34:49 +02:00
per1234
4d7723fb95
Add localIP and maintain to Ethernet keywords
2015-08-22 04:16:43 -07:00
Cristian Maglie
5b3d16fa78
Simplified ScanNetwork example
...
Fixes #3629
2015-08-20 16:40:40 +02:00
lathoub
006124136e
Provide for support for ZeroConf/Bonjour
...
Provide for support for ZeroConf/Bonjour, by allowing derived classes
access to _sock and _remaining. See
https://github.com/lathoub/EthernetBonjour
2015-08-16 15:29:26 +02:00
Cristian Maglie
2659ec6faa
Fixed library.properties for Mouse and Keyboard libraries
2015-07-21 16:40:18 +02:00
Martino Facchin
f9b9cd03d4
Keyboard: fix endif disappeard during rebase
2015-07-16 16:20:16 +02:00
Martino Facchin
af290fc5a3
rework HID-based libraries and add Due fallback
2015-07-16 13:13:53 +02:00
Martino Facchin
5cc7c1078f
remove CompleteHID library
...
expect way more interesting user-generated libraries
2015-07-16 13:13:53 +02:00
Martino Facchin
8ebc5d0347
remove stub MIDIUSB library
...
revert this commit when it's time to integrate this library
2015-07-16 13:13:53 +02:00
Martino Facchin
efd329bb5e
fix MIDIUSB and adapt CompleteHID to PluggableHID
2015-07-16 13:13:53 +02:00
Martino Facchin
e1a0350062
allow HID submodules to create runtime descriptors
...
with this PR you can add
\#include Keyboard.h
\#include Mouse.h
\#include HID.h
in the top of the sketch and you will expose a Mouse+Keyboard
From the library pow, simply add
static HID_Descriptor cb = {
.length = sizeof(_hidReportDescriptor),
.descriptor = _hidReportDescriptor,
};
static HIDDescriptorListNode node(&cb);
HID.AppendDescriptor(&node);
in the class' constructor and you are done!
2015-07-16 13:13:52 +02:00
Martino Facchin
5defaeaa97
rework HID class functions scopes
2015-07-16 13:13:52 +02:00
Martino Facchin
dee43a19d7
fix HID headers
2015-07-16 13:13:51 +02:00
Martino Facchin
9074b1ed18
fix HID descriptors bigger than 127 bytes
2015-07-16 13:13:51 +02:00
Martino Facchin
a989b72a1b
squash of Overhaul USB HID as a library
...
all code from #1803 included
2015-07-16 13:13:51 +02:00
Martino Facchin
91a115a353
move HID library to AVR specific location
2015-07-16 13:13:51 +02:00
Martino Facchin
e211f1ea76
remove setupUSB weak hook and replace with global constructors
...
thanks @matthijskooijman
2015-07-16 13:13:49 +02:00
Martino Facchin
071323196d
enforce single use of HID submodule
2015-07-16 13:13:45 +02:00
Martino Facchin
89928b4e15
rework PUSBCallbacks initialization
2015-07-16 13:13:39 +02:00
Martino Facchin
f37547e8fd
add numInterfaces field to PUSBCallbacks
2015-07-16 13:12:15 +02:00
Martino Facchin
a031921708
add stub MIDIUSB library
...
only a proof of concept for PluggableUSB module
2015-07-16 13:12:15 +02:00
Martino Facchin
8f0a433903
export WEAK macro
2015-07-16 13:12:15 +02:00
Martino Facchin
344896ed70
Fix HID derived libraries and add automatic setupUSB() weak hook
2015-07-16 13:12:15 +02:00
Martino Facchin
feaa14fa56
standalone MouseAndKeyboard library
2015-07-16 13:12:15 +02:00
Martino Facchin
fe825c8f9b
standalone Keyboard library
2015-07-16 13:12:15 +02:00
Martino Facchin
c2a083b57b
standalone Mouse library
2015-07-16 13:12:14 +02:00
Martino Facchin
4a552055bf
remove Mouse and Keyboard from HID module
2015-07-16 13:12:14 +02:00
Martino Facchin
f67318a8b1
remove useless variables
2015-07-16 13:12:14 +02:00
Martino Facchin
2aa2332f88
add arduino header to HID library
2015-07-16 13:12:14 +02:00
Martino Facchin
018fb96a39
move HID to general external library
...
add pluggableUSB hooks and HID singleton
initialize with HID.begin() in setupUSB()
2015-07-16 13:12:14 +02:00
Cristian Maglie
c28e6b20c4
WiFi lib version bump to 1.2.5
2015-07-14 23:40:40 +02:00
Cristian Maglie
6e9e514a2d
Ethernet lib version bump to 1.1.0
2015-07-14 23:39:03 +02:00
Cristian Maglie
94fcb02e0f
Removed typos in EthernetClient.cpp
2015-07-14 15:56:48 +02:00
Alasdair Allan
e5805926d0
Added Multicast UDP support
...
Fix #1531
2015-07-14 15:56:25 +02:00
Cristian Maglie
da243c9e09
Merge branch 'PR_18Wifi' of https://github.com/facchinm/Arduino
2015-07-14 10:16:55 +02:00
Cristian Maglie
a33c93b194
Ethernet: fixed wrong handling of timeouts in DHCP
...
The signed math doesn't handle correctly cases where the lease
time is set to infinity (0xFFFFFFFF).
Fixes #2571
Fixes #2601
Fixes #2642
Fixes #985
2015-07-14 09:57:01 +02:00
Cristian Maglie
50dff341f2
Ethernet: fix calculation of T2 in DHCP
2015-07-14 09:57:01 +02:00
Cristian Maglie
2b089e6b58
Ehternet: removed useless _lastCheck field in DHCP
...
it seems that _lastCheck, besides the name, was simply used as flag
to detect if _secTimeout is initialized. Now the check is removed
and _secTimeout is initalized in the proper place.
2015-07-14 09:57:01 +02:00
Martino Facchin
1fb0f84c46
WiFi: move init from constructor to method
...
Zero SPI library is not responding correctly when invoked before main()
AVR compatibility ok
fixes arduino/ArduinoCore-samd#18
2015-07-10 12:05:55 +02:00
Martino Facchin
e75d029c81
Ethernet: add getSocketNumber to keywords
2015-07-09 15:42:45 +02:00
Aberto Panu
c5f0815f27
Add EthernetClient getSocketNumber() function
2015-07-09 15:42:26 +02:00
Martino Facchin
2f3914eb97
LiquidCrystal: bumb version to 1.0.3
...
fix compatibility with Galileo and Edison
2015-07-09 15:04:26 +02:00
Federico Fissore
5e98cd8528
Examples: mass code format. See example_formatter.conf
2015-07-06 15:19:05 +02:00
Pras Velagapudi
2d5e76e10c
Fixed typo in Scheduler header guard.
...
The header guard in the Scheduler.h file was previously misspelled.
2015-07-03 13:10:33 -04:00
Calvin Park
b0278f4c15
LiquidCrystal Library changes for Galileo and Edison compatibility
2015-07-01 15:06:39 -07:00
Cristian Maglie
71de447620
Bridge: Added UDP packet support.
...
Fix #1716
2015-06-30 13:32:42 +02:00
Cristian Maglie
e016835289
Bridge: Added compatibility layer with older YunClient
2015-06-30 12:20:12 +02:00
Cristian Maglie
0c109b5242
Bridge: Renamed YunClient/YunServer to BridgeClient/BridgeServer
...
This makes the library more consistent and not tied to a specific board.
2015-06-30 12:20:11 +02:00
Cristian Maglie
954f59d9ce
Bridge: Fixed File "duplicate definitions" when using SD and Bridge libraries together
...
The two File classes have been enclosed into different namespaces.
To guarantee compatibility with old sketches that uses only one of the two
libraries an additional line:
using namespace xxxxx;
has been added so the users can still use "File" where there is no ambiguity.
BridgeLib::File and SDLib::File classes have been also aliased to BridgeFile
and SDFile respectively, users are encouraged to use that instead of File.
2015-06-30 11:49:53 +02:00