1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00
Commit Graph

672 Commits

Author SHA1 Message Date
per1234
7f4c29927d Clean up Ethernet example comments
- Fix typos and formatting.
- Remove analog inputs part of Circuit comment in ChatServer and
AdvancedChatServer. The examples don't use these analog inputs.
2015-10-04 05:03:31 -07:00
Federico Fissore
46cb5f0a5c Removing useless includes from examples 2015-10-02 12:24:31 +02:00
Nico
bd1124eb0f Fixed typo in Keyboard API 2015-09-28 14:21:01 +02:00
Cristian Maglie
e4d63adf45 Merge branch 'pluggable_hid_impr' of https://github.com/cmaglie/Arduino 2015-09-28 12:06:35 +02:00
Federico Fissore
017640a621 Fixed license headers. See https://github.com/arduino/Arduino/pull/3498 2015-09-25 15:17:35 +02:00
Federico Fissore
0b1f5249d4 Removing Esplora library from this repo. Downloaded at build time 2015-09-24 11:33:16 +02:00
Claudius Coenen
0a819edc54 removing unused variable from Stepper 2015-09-23 23:12:47 +02:00
Cristian Maglie
0083d75224 Fixed typo in Ethernet lib
Fix #3845
2015-09-23 14:50:28 +02:00
Cristian Maglie
401c4f0cf8 HID: merged HID_Descriptor into HIDDescriptorListNode
This simplifies the object model and produce a small gain in code
size and performance.
2015-09-22 16:51:30 +02:00
Cristian Maglie
f0cf13c89b HID: Renamed fields in HIDDescriptorListNode and HID_Descriptor
In particular HIDDescriptorListNode.cb has been renamed to
HIDDescriptorListNode.descriptor because it contains decriptor data
and not callbacks.

Moreover the HID_Descriptor.descriptor field has been renamed
to HID_Descriptor.data so the structure has now two fields length
and data.

   typedef struct __attribute__((packed)) {
     uint16_t length;
     const void* data;
   } HID_Descriptor;

   class HIDDescriptorListNode {
   public:
     HIDDescriptorListNode *next = NULL;
     const HID_Descriptor *descriptor;
     HIDDescriptorListNode(const HID_Descriptor *d) : descriptor(d) { }
   };

This imply a change in the use of the node from:

  node->cb->lenght
  node->cd->descriptor

to

  node->descriptor->length
  node->descriptor->data
2015-09-22 16:49:14 +02:00
Arturo Guadalupi
a4576a5c40 Merge pull request #3833 from agdl/ifSerialmods
Modified reference to Leonardo only in the examples
2015-09-22 15:55:58 +02:00
Arturo Guadalupi
9eaea4205d Modified reference to Leonardo only in the examples
According to #3786 removed the reference to Leonardo only in while(!Serial) of the examples.
Changed in in "wait for serial port to connect. Needed for native USB port only"
2015-09-21 14:58:58 +02:00
Federico Fissore
d1c61aca54 Removing SpacebrewYun library from this repo. Downloaded at build time 2015-09-21 13:16:39 +02:00
Federico Fissore
298fbdc7b5 Removing Robot* libraries from this repo. Downloaded at build time 2015-09-21 13:12:13 +02:00
Federico Fissore
4fa8750862 Bridge lib: removing from this repo. It's downloaded at build time, just as
Temboo and Firmata
Other libs will soon follow
2015-09-21 12:54:19 +02:00
Eddy
8a4fd0e6a2 Ethernet use DNS in examples
Set the DNS-Server as third parameter of Ethernet.begin if at least gateway is specified. Reference is Updated before.

In BarometricPressureWebServer gateway and subnet wasn't used.

Signed-off-by: Eddy <est.git@online.de>
2015-09-18 11:36:15 +02:00
Cristian Maglie
306eaa13c9 Fixed DNSClient::inet_aton function.
Fixes #2500
2015-09-09 12:03:29 +02:00
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