├── tools ├── segnix ├── ITEAD-logo.JPG ├── test │ ├── test_analogRead.py │ ├── itead_gpio_int_for_ITEAD-OS_2.1.0.ko │ ├── itead_gpio_int_for_ITEAD-OS_2.0.4-2.0.8.ko │ ├── test_analogRead.ino │ ├── blink.py │ ├── test_cpp_spi.cpp │ ├── test_spi.py │ ├── test_serial.py │ ├── test_wire.py │ └── gpio.cpp ├── final-itead.rules └── config.mk ├── .gitignore ├── libraries ├── itead_Nextion │ ├── version.txt │ ├── doc │ │ └── Documentation │ │ │ ├── graph_legend.md5 │ │ │ ├── inherit_graph_0.md5 │ │ │ ├── _nex_button_8h__incl.md5 │ │ │ ├── _nex_crop_8cpp__incl.md5 │ │ │ ├── _nex_crop_8h__incl.md5 │ │ │ ├── _nex_gauge_8h__incl.md5 │ │ │ ├── _nex_number_8h__incl.md5 │ │ │ ├── _nex_object_8h__incl.md5 │ │ │ ├── _nex_page_8cpp__incl.md5 │ │ │ ├── _nex_page_8h__incl.md5 │ │ │ ├── _nex_slider_8h__incl.md5 │ │ │ ├── _nex_text_8cpp__incl.md5 │ │ │ ├── _nex_text_8h__incl.md5 │ │ │ ├── _nex_touch_8h__incl.md5 │ │ │ ├── _nextion_8h__incl.md5 │ │ │ ├── group___core_a_p_i.md5 │ │ │ ├── group___touch_event.md5 │ │ │ ├── _nex_button_8cpp__incl.md5 │ │ │ ├── _nex_button_8h__dep__incl.md5 │ │ │ ├── _nex_config_8h__dep__incl.md5 │ │ │ ├── _nex_crop_8h__dep__incl.md5 │ │ │ ├── _nex_gauge_8cpp__incl.md5 │ │ │ ├── _nex_gauge_8h__dep__incl.md5 │ │ │ ├── _nex_hardware_8cpp__incl.md5 │ │ │ ├── _nex_hardware_8h__incl.md5 │ │ │ ├── _nex_hotspot_8cpp__incl.md5 │ │ │ ├── _nex_hotspot_8h__incl.md5 │ │ │ ├── _nex_number_8cpp__incl.md5 │ │ │ ├── _nex_number_8h__dep__incl.md5 │ │ │ ├── _nex_object_8cpp__incl.md5 │ │ │ ├── _nex_object_8h__dep__incl.md5 │ │ │ ├── _nex_page_8h__dep__incl.md5 │ │ │ ├── _nex_picture_8cpp__incl.md5 │ │ │ ├── _nex_picture_8h__incl.md5 │ │ │ ├── _nex_slider_8cpp__incl.md5 │ │ │ ├── _nex_slider_8h__dep__incl.md5 │ │ │ ├── _nex_text_8h__dep__incl.md5 │ │ │ ├── _nex_touch_8cpp__incl.md5 │ │ │ ├── _nex_touch_8h__dep__incl.md5 │ │ │ ├── _nex_waveform_8cpp__incl.md5 │ │ │ ├── _nex_waveform_8h__incl.md5 │ │ │ ├── _nextion_8h__dep__incl.md5 │ │ │ ├── _nex_hardware_8h__dep__incl.md5 │ │ │ ├── _nex_hotspot_8h__dep__incl.md5 │ │ │ ├── _nex_picture_8h__dep__incl.md5 │ │ │ ├── _nex_progress_bar_8cpp__incl.md5 │ │ │ ├── _nex_progress_bar_8h__incl.md5 │ │ │ ├── _nex_waveform_8h__dep__incl.md5 │ │ │ ├── class_nex_button__coll__graph.md5 │ │ │ ├── class_nex_crop__coll__graph.md5 │ │ │ ├── class_nex_crop__inherit__graph.md5 │ │ │ ├── class_nex_gauge__coll__graph.md5 │ │ │ ├── class_nex_hotspot__coll__graph.md5 │ │ │ ├── class_nex_number__coll__graph.md5 │ │ │ ├── class_nex_page__coll__graph.md5 │ │ │ ├── class_nex_page__inherit__graph.md5 │ │ │ ├── class_nex_picture__coll__graph.md5 │ │ │ ├── class_nex_slider__coll__graph.md5 │ │ │ ├── class_nex_text__coll__graph.md5 │ │ │ ├── class_nex_text__inherit__graph.md5 │ │ │ ├── class_nex_touch__coll__graph.md5 │ │ │ ├── _nex_dual_state_button_8cpp__incl.md5 │ │ │ ├── _nex_dual_state_button_8h__incl.md5 │ │ │ ├── _nex_progress_bar_8h__dep__incl.md5 │ │ │ ├── class_nex_button__inherit__graph.md5 │ │ │ ├── class_nex_d_s_button__coll__graph.md5 │ │ │ ├── class_nex_gauge__inherit__graph.md5 │ │ │ ├── class_nex_hotspot__inherit__graph.md5 │ │ │ ├── class_nex_number__inherit__graph.md5 │ │ │ ├── class_nex_object__inherit__graph.md5 │ │ │ ├── class_nex_picture__inherit__graph.md5 │ │ │ ├── class_nex_progress_bar__coll__graph.md5 │ │ │ ├── class_nex_slider__inherit__graph.md5 │ │ │ ├── class_nex_touch__inherit__graph.md5 │ │ │ ├── class_nex_waveform__coll__graph.md5 │ │ │ ├── class_nex_waveform__inherit__graph.md5 │ │ │ ├── _nex_dual_state_button_8h__dep__incl.md5 │ │ │ ├── class_nex_d_s_button__inherit__graph.md5 │ │ │ ├── class_nex_progress_bar__inherit__graph.md5 │ │ │ ├── dir_2af451c22587252d0014dbc596e2e19a_dep.md5 │ │ │ ├── dir_3a828b7214103d705cc83e20f29bdad9_dep.md5 │ │ │ ├── dir_472f54fb1d9b74971d8e15d62f212bd3_dep.md5 │ │ │ ├── dir_4b43661efaa18af91f213d2681ebd37e_dep.md5 │ │ │ ├── dir_7962cac16a99e8bbaaea18abede03fcb_dep.md5 │ │ │ ├── dir_8dcbebf38b229bfa7bb34d68bf824093_dep.md5 │ │ │ ├── dir_9bbf8342b0f9a157b7af08fe1412fc17_dep.md5 │ │ │ ├── dir_a48692e2802a027399b146b680655303_dep.md5 │ │ │ ├── dir_c918e8bf3fc71f849978cdb0d900e61c_dep.md5 │ │ │ ├── dir_ce36ac18ad3deaf5eae0bd2e09775a7d_dep.md5 │ │ │ ├── dir_d28a4824dc47e487b107a5db32ef43c4_dep.md5 │ │ │ ├── dir_f3d39c87bc262720c50d5e3885667b8a_dep.md5 │ │ │ ├── dir_f76977d9ffe8ddf3ad01f3d689aa5df4_dep.md5 │ │ │ ├── bc_s.png │ │ │ ├── bdwn.png │ │ │ ├── open.png │ │ │ ├── closed.png │ │ │ ├── nav_f.png │ │ │ ├── nav_g.png │ │ │ ├── nav_h.png │ │ │ ├── tab_a.png │ │ │ ├── tab_b.png │ │ │ ├── tab_h.png │ │ │ ├── tab_s.png │ │ │ ├── doxygen.png │ │ │ ├── ftv2blank.png │ │ │ ├── ftv2doc.png │ │ │ ├── ftv2link.png │ │ │ ├── ftv2mnode.png │ │ │ ├── ftv2node.png │ │ │ ├── ftv2pnode.png │ │ │ ├── sync_off.png │ │ │ ├── sync_on.png │ │ │ ├── ftv2folderopen.png │ │ │ ├── ftv2lastnode.png │ │ │ ├── ftv2mlastnode.png │ │ │ ├── ftv2plastnode.png │ │ │ ├── ftv2splitbar.png │ │ │ ├── ftv2vertline.png │ │ │ ├── ftv2folderclosed.png │ │ │ ├── _nex_config_8h.js │ │ │ ├── class_nex_hotspot.js │ │ │ ├── dir_8dcbebf38b229bfa7bb34d68bf824093.js │ │ │ ├── dir_a48692e2802a027399b146b680655303.js │ │ │ ├── dir_c918e8bf3fc71f849978cdb0d900e61c.js │ │ │ ├── dir_f76977d9ffe8ddf3ad01f3d689aa5df4.js │ │ │ ├── group___configuration.js │ │ │ ├── dir_2af451c22587252d0014dbc596e2e19a.js │ │ │ ├── dir_472f54fb1d9b74971d8e15d62f212bd3.js │ │ │ ├── dir_4b43661efaa18af91f213d2681ebd37e.js │ │ │ ├── dir_9bbf8342b0f9a157b7af08fe1412fc17.js │ │ │ ├── dir_ce36ac18ad3deaf5eae0bd2e09775a7d.js │ │ │ ├── dir_f3d39c87bc262720c50d5e3885667b8a.js │ │ │ ├── dir_7962cac16a99e8bbaaea18abede03fcb.js │ │ │ ├── dir_3a828b7214103d705cc83e20f29bdad9.js │ │ │ ├── class_nex_page.js │ │ │ ├── _nex_hardware_8h.js │ │ │ ├── class_nex_object.js │ │ │ ├── _nex_hardware_8cpp.js │ │ │ ├── class_nex_waveform.js │ │ │ ├── class_nex_crop.js │ │ │ ├── class_nex_text.js │ │ │ ├── class_nex_gauge.js │ │ │ ├── class_nex_button.js │ │ │ ├── class_nex_number.js │ │ │ ├── class_nex_slider.js │ │ │ ├── class_nex_picture.js │ │ │ ├── modules.js │ │ │ ├── _nex_touch_8h.js │ │ │ ├── class_nex_d_s_button.js │ │ │ ├── class_nex_progress_bar.js │ │ │ ├── class_nex_touch.js │ │ │ ├── group___core_a_p_i.js │ │ │ ├── group___touch_event.dot │ │ │ ├── class_nex_gauge__coll__graph.dot │ │ │ ├── class_nex_touch__coll__graph.dot │ │ │ ├── dir_8dcbebf38b229bfa7bb34d68bf824093_dep.dot │ │ │ ├── dir_a48692e2802a027399b146b680655303_dep.dot │ │ │ ├── dir_c918e8bf3fc71f849978cdb0d900e61c_dep.dot │ │ │ ├── dir_f76977d9ffe8ddf3ad01f3d689aa5df4_dep.dot │ │ │ ├── class_nex_gauge__inherit__graph.dot │ │ │ ├── dir_2af451c22587252d0014dbc596e2e19a_dep.dot │ │ │ ├── dir_472f54fb1d9b74971d8e15d62f212bd3_dep.dot │ │ │ ├── dir_9bbf8342b0f9a157b7af08fe1412fc17_dep.dot │ │ │ ├── dir_ce36ac18ad3deaf5eae0bd2e09775a7d_dep.dot │ │ │ ├── dir_f3d39c87bc262720c50d5e3885667b8a_dep.dot │ │ │ ├── class_nex_waveform__coll__graph.dot │ │ │ ├── dir_4b43661efaa18af91f213d2681ebd37e_dep.dot │ │ │ ├── class_nex_waveform__inherit__graph.dot │ │ │ ├── dir_7962cac16a99e8bbaaea18abede03fcb_dep.dot │ │ │ ├── class_nex_progress_bar__coll__graph.dot │ │ │ ├── dir_3a828b7214103d705cc83e20f29bdad9_dep.dot │ │ │ ├── class_nex_progress_bar__inherit__graph.dot │ │ │ ├── group___core_a_p_i.dot │ │ │ ├── _nex_object_8h__incl.dot │ │ │ ├── group___touch_event.js │ │ │ ├── hierarchy.js │ │ │ ├── examples.js │ │ │ ├── class_nex_crop__coll__graph.dot │ │ │ ├── class_nex_page__coll__graph.dot │ │ │ ├── class_nex_text__coll__graph.dot │ │ │ ├── class_nex_button__coll__graph.dot │ │ │ ├── class_nex_crop__inherit__graph.dot │ │ │ ├── class_nex_number__coll__graph.dot │ │ │ ├── class_nex_page__inherit__graph.dot │ │ │ ├── class_nex_slider__coll__graph.dot │ │ │ ├── class_nex_text__inherit__graph.dot │ │ │ ├── class_nex_button__inherit__graph.dot │ │ │ ├── class_nex_hotspot__coll__graph.dot │ │ │ ├── class_nex_hotspot__inherit__graph.dot │ │ │ ├── class_nex_number__inherit__graph.dot │ │ │ ├── class_nex_picture__coll__graph.dot │ │ │ ├── class_nex_picture__inherit__graph.dot │ │ │ ├── class_nex_slider__inherit__graph.dot │ │ │ ├── class_nex_d_s_button__coll__graph.dot │ │ │ ├── class_nex_d_s_button__inherit__graph.dot │ │ │ ├── annotated.js │ │ │ ├── _nex_object_8cpp__incl.dot │ │ │ ├── dir_d28a4824dc47e487b107a5db32ef43c4.js │ │ │ ├── tabs.css │ │ │ └── _nex_touch_8h__incl.dot │ ├── examples │ │ ├── CompCrop │ │ │ ├── CompCrop.HMI │ │ │ ├── CompCrop.tft │ │ │ └── CompCrop.ino │ │ ├── CompNumber │ │ │ ├── CompNumber │ │ │ ├── CompNumber.HMI │ │ │ └── CompNumber.tft │ │ ├── CompPage │ │ │ ├── CompPage.HMI │ │ │ └── CompPage.tft │ │ ├── CompText │ │ │ ├── CompText.HMI │ │ │ └── CompText.tft │ │ ├── CompGauge │ │ │ ├── CompGauge.HMI │ │ │ └── CompGauge.tft │ │ ├── CompButton │ │ │ ├── CompButton.HMI │ │ │ ├── CompButton.tft │ │ │ └── CompButton.ino │ │ ├── CompHotspot │ │ │ ├── CompHotspot.HMI │ │ │ └── CompHotspot.tft │ │ ├── CompPicture │ │ │ ├── CompPicture.HMI │ │ │ ├── CompPicture.tft │ │ │ └── CompPicture.ino │ │ ├── CompSlider │ │ │ ├── CompSlider.HMI │ │ │ ├── CompSlider.tft │ │ │ └── CompSlider.ino │ │ ├── CompWaveform │ │ │ ├── CompWaveform.HMI │ │ │ └── CompWaveform.tft │ │ ├── CompProgressBar │ │ │ ├── CompProgressBar.HMI │ │ │ └── CompProgressBar.tft │ │ └── CompDualStateButton │ │ │ ├── CompDualStateButton │ │ │ ├── CompDualStateButton.HMI │ │ │ └── CompDualStateButton.tft │ ├── Makefile │ ├── release_notes.md │ ├── NexHotspot.cpp │ ├── NexWaveform.cpp │ ├── NexPage.cpp │ ├── NexHotspot.h │ ├── Nextion.h │ ├── NexText.cpp │ ├── NexButton.cpp │ ├── NexGauge.cpp │ ├── NexSlider.cpp │ ├── NexCrop.cpp │ ├── NexNumber.cpp │ ├── NexPicture.cpp │ ├── doxygen.h │ ├── NexProgressBar.cpp │ ├── NexDualStateButton.cpp │ ├── NexPage.h │ ├── NexWaveform.h │ ├── NexObject.cpp │ ├── NexConfig.h │ ├── NexSlider.h │ └── NexGauge.h ├── itead_PN532_SPI │ ├── Makefile │ └── examples │ │ ├── readMifareTargetID │ │ └── readMifareTargetID.ino │ │ ├── PtoPTarget │ │ └── PtoPTarget.ino │ │ └── PtoPInitiator │ │ └── PtoPInitiator.ino ├── itead_NRF24L01P │ ├── Makefile │ └── examples │ │ ├── recv │ │ └── recv.ino │ │ └── send │ │ └── send.ino ├── itead_SHT1x │ ├── Makefile │ └── examples │ │ └── ReadSHT1xValues │ │ └── ReadSHT1xValues.ino ├── itead_GFX │ ├── Makefile │ ├── README.txt │ └── license.txt ├── itead_TinyGPS │ └── Makefile ├── itead_nRF24L01-lite │ ├── Makefile │ └── examples │ │ ├── txdemo │ │ └── txdemo.ino │ │ └── rxdemo │ │ └── rxdemo.ino ├── itead_SSD1306 │ ├── Makefile │ ├── README.txt │ └── license.txt ├── itead_LiquidCrystal │ ├── Makefile │ └── README.txt ├── itead_GSM-GPRS-GPS │ ├── Makefile │ ├── gps.h │ ├── sms.h │ ├── LOG.h │ ├── call.h │ ├── examples │ │ ├── 3-Call │ │ │ └── Call.ino │ │ ├── 0-AT │ │ │ └── AT.ino │ │ ├── 5-DTMF │ │ │ └── DTMF.ino │ │ └── 2-SMS │ │ │ └── SMS.ino │ ├── inetGSM.h │ ├── LOG.cpp │ └── doc │ │ └── Instructions.txt ├── itead_IoTgo │ ├── README.md │ ├── Makefile │ ├── IoTgo_device.h │ ├── IoTgo_debug.h │ ├── Dev_THSensor.h │ ├── IoTgo_error.h │ └── Dev_Light.h └── Makefile ├── SDK_Python ├── itead_config.py ├── BOARD_RASPBERRY_PI_RV2_GPIO.py ├── BOARD_RASPBERRY_PI_MODEL_BPLUS_GPIO.py ├── BOARD_BEAGLE_BONE_BLACK_GPIO.py ├── BOARD_ITEAD_CORE_EVB_GPIO.py ├── Makefile └── core │ └── setup.py ├── doc ├── Segnix-API.chm └── Segnix-API-html │ ├── bc_s.png │ ├── bdwn.png │ ├── closed.png │ ├── nav_f.png │ ├── nav_g.png │ ├── nav_h.png │ ├── open.png │ ├── tab_a.png │ ├── tab_b.png │ ├── tab_h.png │ ├── tab_s.png │ ├── doxygen.png │ ├── ftv2doc.png │ ├── ftv2link.png │ ├── ftv2node.png │ ├── sync_off.png │ ├── sync_on.png │ ├── ITEAD-logo.JPG │ ├── class_light.png │ ├── class_print.png │ ├── ftv2blank.png │ ├── ftv2mnode.png │ ├── ftv2pnode.png │ ├── class_io_tgo.png │ ├── class_switch.png │ ├── ftv2lastnode.png │ ├── ftv2mlastnode.png │ ├── ftv2plastnode.png │ ├── ftv2splitbar.png │ ├── ftv2vertline.png │ ├── class_serial__.png │ ├── class_t_h_sensor.png │ ├── ftv2folderclosed.png │ ├── ftv2folderopen.png │ └── tabs.css ├── include ├── itead_config.h ├── itead.h ├── itead_utility.h ├── itead_debug.h ├── itead_delay.h └── itead_doxygen.h ├── lib ├── c │ └── Makefile ├── cpp │ └── Makefile └── Makefile ├── bootloader ├── Makefile └── iteadboot.cpp ├── driver ├── itead_gpio_int │ └── Makefile └── itead_a20_core_spi │ └── Makefile ├── examples ├── Basics │ ├── BareMinimum │ │ └── BareMinimum.ino │ ├── DigitalReadSerial │ │ └── DigitalReadSerial.ino │ ├── Blink │ │ └── Blink.ino │ └── Fade │ │ └── Fade.ino └── README.txt └── config.mk /tools/segnix: -------------------------------------------------------------------------------- 1 | iteadcompile -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | cscope* 2 | *.so 3 | *.o -------------------------------------------------------------------------------- /libraries/itead_Nextion/version.txt: -------------------------------------------------------------------------------- 1 | 0.7.0 2 | -------------------------------------------------------------------------------- /SDK_Python/itead_config.py: -------------------------------------------------------------------------------- 1 | BOARD_TYPE = 'BOARD_RASPBERRY_PI_MODEL_BPLUS' 2 | -------------------------------------------------------------------------------- /doc/Segnix-API.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API.chm -------------------------------------------------------------------------------- /tools/ITEAD-logo.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/tools/ITEAD-logo.JPG -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/graph_legend.md5: -------------------------------------------------------------------------------- 1 | 387ff8eb65306fa251338d3c9bd7bfff -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/inherit_graph_0.md5: -------------------------------------------------------------------------------- 1 | 01dd3e337201fbd58d38ffd1d9e44ff7 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_button_8h__incl.md5: -------------------------------------------------------------------------------- 1 | 9bf2f0d9a053c800ddc6bb0d78045711 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_crop_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 20221e57fbc2b7f74db504f22cc05e0b -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_crop_8h__incl.md5: -------------------------------------------------------------------------------- 1 | 4def224d0a0722315ab0466fd437ac58 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_gauge_8h__incl.md5: -------------------------------------------------------------------------------- 1 | d96156b1ca0b33fb4e2b9d982f1c36e1 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_number_8h__incl.md5: -------------------------------------------------------------------------------- 1 | eaf5c26b5187bec30b2ab80f28e9a366 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_object_8h__incl.md5: -------------------------------------------------------------------------------- 1 | 976d00c5c9fa9280f2a370cc8409b62e -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_page_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | f933b38b5cf25d71d550e8c329176439 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_page_8h__incl.md5: -------------------------------------------------------------------------------- 1 | 52d6ab4486ccc698f1abf28c8a27d909 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_slider_8h__incl.md5: -------------------------------------------------------------------------------- 1 | 101bdc42692c7ae9b8af66a073029061 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_text_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | b4407e677b14a6691af34d854cc8417d -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_text_8h__incl.md5: -------------------------------------------------------------------------------- 1 | 06f95e5bdc16df71af202eb67e7ae412 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_touch_8h__incl.md5: -------------------------------------------------------------------------------- 1 | f633879c2c405c0c39538e1e0e03a331 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nextion_8h__incl.md5: -------------------------------------------------------------------------------- 1 | 5dc018f01593d6c897e9ad7aa86c265a -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/group___core_a_p_i.md5: -------------------------------------------------------------------------------- 1 | 21027fdf9e75ceb0e50f2f3516c900c5 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/group___touch_event.md5: -------------------------------------------------------------------------------- 1 | 26427a4bb7a69fd9bbf2440c78b4282f -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_button_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 2cc857c8782b825946646c81ebed0b1f -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_button_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | fe5cb2b3be5c36e970682328506a30f5 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_config_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | e2efb987b673b30f80755bba509e9310 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_crop_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | 8898e34736656b98329804e7e674c769 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_gauge_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | e297ac70fd7cc87431884dcc7ef4e26c -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_gauge_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | e7e8f0573b9f3d2a7b1299dfb02d4e88 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_hardware_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 0e96ca249922a261e0bcb2c7a05b1a8b -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_hardware_8h__incl.md5: -------------------------------------------------------------------------------- 1 | e077d33d7e248f9f55e348253c512799 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_hotspot_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 668ce8f36d2ad60f2b682e3b9a7afa77 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_hotspot_8h__incl.md5: -------------------------------------------------------------------------------- 1 | f4616ed615cf85c27dc7e1732929e2a5 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_number_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | b4c5b1e9ea8e3a925a942f2fd1f6aa6e -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_number_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | 80d122ff1baa63f532c9c7f0dbe58250 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_object_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | cd56aa81afff3584b65d2dde0ca24187 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_object_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | f5d05181d04e702a7d4c042acd0081cc -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_page_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | e80030cef0396dece51fc57552638f91 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_picture_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | e39f17d227a85a89f7cf7e04c526d920 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_picture_8h__incl.md5: -------------------------------------------------------------------------------- 1 | 1bdcc71185d144f99ef91e79d91fe024 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_slider_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 8412a7cb8fc216df9d5fe7f8e188b02e -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_slider_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | e995ef816bd8c986de2f32ab606dae17 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_text_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | d0e8b8ca8c9ccffc34af808845426993 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_touch_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 87ea3b8703756e0d6a1c19382e80f6c5 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_touch_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | 68384e075a3b60acafc12a1e1e7025e5 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_waveform_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | e564cd903a86c2f0e447f2e8057641c9 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_waveform_8h__incl.md5: -------------------------------------------------------------------------------- 1 | e4a1ab6ee1478fd4df034e5f5e10e03e -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nextion_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | 1e1637c771e7bf240089de808c7fdd6f -------------------------------------------------------------------------------- /doc/Segnix-API-html/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/bc_s.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/bdwn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/bdwn.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/closed.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/nav_f.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/nav_g.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/nav_g.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/nav_h.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/open.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/tab_a.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/tab_b.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/tab_h.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/tab_s.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_hardware_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | f6fb45e771937e3303490cca8c3265a8 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_hotspot_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | 076e2012b4aa7f62f49bcedae540addc -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_picture_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | a473f26cb4806cdda867a358682212b7 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_progress_bar_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | f0d8f80d758085e7a6f83981a877e062 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_progress_bar_8h__incl.md5: -------------------------------------------------------------------------------- 1 | b828099ae89b77d9303a82d72da40cf7 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_waveform_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | 70ea1a64ca2561b8f3455656923f870d -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_button__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 5b629f9b08b2746e973762df5bb86e6d -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_crop__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 87d92e788ff7a7e737cc1527efa48f86 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_crop__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 87d92e788ff7a7e737cc1527efa48f86 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_gauge__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 66434c01732ec923fec5ea360d17898e -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_hotspot__coll__graph.md5: -------------------------------------------------------------------------------- 1 | fbbff2774d1ca9fdc7ac024bd66f2322 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_number__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 3a9d0a1c4b1351a582f7c1ee279cd803 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_page__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 2b8e4b423286ce857c7eef666f7cd7bb -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_page__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 2b8e4b423286ce857c7eef666f7cd7bb -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_picture__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 2b5e9b837f132e62a2db9e5d7a1cf412 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_slider__coll__graph.md5: -------------------------------------------------------------------------------- 1 | cc9da53481800e331072e3c62e322035 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_text__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 41e81133d3282d375c86dbd510a4d5a2 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_text__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 41e81133d3282d375c86dbd510a4d5a2 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_touch__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 54bd6fc0f2e7911016626c2d2ed9611a -------------------------------------------------------------------------------- /doc/Segnix-API-html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/doxygen.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2doc.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2link.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2node.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/sync_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/sync_off.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/sync_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/sync_on.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_dual_state_button_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 91370c38d93bfe2a9e257eaf738a915c -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_dual_state_button_8h__incl.md5: -------------------------------------------------------------------------------- 1 | 30595328b405552cce14b6cd619d72d4 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_progress_bar_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | 6dc371a234e7946f09c8b897119565f5 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_button__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 5b629f9b08b2746e973762df5bb86e6d -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_d_s_button__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 3f339ab8a65fd3716229b793dfd1b2e7 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_gauge__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 66434c01732ec923fec5ea360d17898e -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_hotspot__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | fbbff2774d1ca9fdc7ac024bd66f2322 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_number__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 3a9d0a1c4b1351a582f7c1ee279cd803 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_object__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 01a69675f9e10312c68f5227c77f870a -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_picture__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 2b5e9b837f132e62a2db9e5d7a1cf412 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_progress_bar__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 1893f6597df154ed0de61efadc50216e -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_slider__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | cc9da53481800e331072e3c62e322035 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_touch__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 09f1b423beb7cb048c1391e3ccdad6ee -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_waveform__coll__graph.md5: -------------------------------------------------------------------------------- 1 | 693216a9aaaec49b90940efd16e28b50 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_waveform__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 693216a9aaaec49b90940efd16e28b50 -------------------------------------------------------------------------------- /doc/Segnix-API-html/ITEAD-logo.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ITEAD-logo.JPG -------------------------------------------------------------------------------- /doc/Segnix-API-html/class_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/class_light.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/class_print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/class_print.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2blank.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2mnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2mnode.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2pnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2pnode.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_dual_state_button_8h__dep__incl.md5: -------------------------------------------------------------------------------- 1 | 32ac4ab9637cf400b0988ac12e1c25ae -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_d_s_button__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 3f339ab8a65fd3716229b793dfd1b2e7 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_progress_bar__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 1893f6597df154ed0de61efadc50216e -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_2af451c22587252d0014dbc596e2e19a_dep.md5: -------------------------------------------------------------------------------- 1 | 7aca4578f254131e436a3696254eb9e3 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_3a828b7214103d705cc83e20f29bdad9_dep.md5: -------------------------------------------------------------------------------- 1 | 22f53f03c64240f229aa10af935a7fbd -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_472f54fb1d9b74971d8e15d62f212bd3_dep.md5: -------------------------------------------------------------------------------- 1 | 6b00f5c64b4f73750ff0dc3970d5c129 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_4b43661efaa18af91f213d2681ebd37e_dep.md5: -------------------------------------------------------------------------------- 1 | 750bde18179402f11246063a0f292b74 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_7962cac16a99e8bbaaea18abede03fcb_dep.md5: -------------------------------------------------------------------------------- 1 | 5ed8a291d1430d676574d1e29d43a8b6 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_8dcbebf38b229bfa7bb34d68bf824093_dep.md5: -------------------------------------------------------------------------------- 1 | ca015543db1dd0ce10f24c5e32e4838d -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_9bbf8342b0f9a157b7af08fe1412fc17_dep.md5: -------------------------------------------------------------------------------- 1 | df6dbd522ce7792d448df28246851bb1 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_a48692e2802a027399b146b680655303_dep.md5: -------------------------------------------------------------------------------- 1 | c781e206f4b6f42a683e814b20edcea6 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_c918e8bf3fc71f849978cdb0d900e61c_dep.md5: -------------------------------------------------------------------------------- 1 | a203389939f4517c3b53f9a65bf5957b -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_ce36ac18ad3deaf5eae0bd2e09775a7d_dep.md5: -------------------------------------------------------------------------------- 1 | bfb11051cc7ff9d1548f9d0843e96599 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_d28a4824dc47e487b107a5db32ef43c4_dep.md5: -------------------------------------------------------------------------------- 1 | 46f6c04d1524f2281a74f0a9143153a5 -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_f3d39c87bc262720c50d5e3885667b8a_dep.md5: -------------------------------------------------------------------------------- 1 | ae8887d1ed67122595bc3fc25c655d0c -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_f76977d9ffe8ddf3ad01f3d689aa5df4_dep.md5: -------------------------------------------------------------------------------- 1 | 00fdd8a9da24bbbe0c00a6281295e32f -------------------------------------------------------------------------------- /doc/Segnix-API-html/class_io_tgo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/class_io_tgo.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/class_switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/class_switch.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2lastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2lastnode.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2mlastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2mlastnode.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2plastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2plastnode.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2splitbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2splitbar.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2vertline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2vertline.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/class_serial__.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/class_serial__.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/class_t_h_sensor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/class_t_h_sensor.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2folderclosed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2folderclosed.png -------------------------------------------------------------------------------- /doc/Segnix-API-html/ftv2folderopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/doc/Segnix-API-html/ftv2folderopen.png -------------------------------------------------------------------------------- /tools/test/test_analogRead.py: -------------------------------------------------------------------------------- 1 | #! /user/bin/env python 2 | from iteadsdk import * 3 | result = analogRead(AIN0) 4 | print result 5 | -------------------------------------------------------------------------------- /include/itead_config.h: -------------------------------------------------------------------------------- 1 | #ifndef __ITEAD_CONFIG_H__ 2 | #define __ITEAD_CONFIG_H__ 3 | #define BOARD_RASPBERRY_PI_MODEL_BPLUS 4 | #endif 5 | -------------------------------------------------------------------------------- /tools/test/itead_gpio_int_for_ITEAD-OS_2.1.0.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/tools/test/itead_gpio_int_for_ITEAD-OS_2.1.0.ko -------------------------------------------------------------------------------- /lib/c/Makefile: -------------------------------------------------------------------------------- 1 | libiteadc.so: *.c ../../include/*.h 2 | $(SDK_C_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -shared -o $@ *.c -I../../include 3 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/bc_s.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/bdwn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/bdwn.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/open.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/closed.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/nav_f.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/nav_g.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/nav_g.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/nav_h.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/tab_a.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/tab_b.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/tab_h.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/tab_s.png -------------------------------------------------------------------------------- /lib/cpp/Makefile: -------------------------------------------------------------------------------- 1 | libiteadcpp.so: *.cpp ../../include/*.h 2 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -shared -o $@ *.cpp -I../../include 3 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/doxygen.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2blank.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2doc.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2link.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2mnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2mnode.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2node.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2pnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2pnode.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/sync_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/sync_off.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/sync_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/sync_on.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompCrop/CompCrop.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompCrop/CompCrop.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompCrop/CompCrop.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompCrop/CompCrop.tft -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompNumber/CompNumber: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompNumber/CompNumber -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompPage/CompPage.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompPage/CompPage.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompPage/CompPage.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompPage/CompPage.tft -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompText/CompText.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompText/CompText.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompText/CompText.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompText/CompText.tft -------------------------------------------------------------------------------- /tools/test/itead_gpio_int_for_ITEAD-OS_2.0.4-2.0.8.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/tools/test/itead_gpio_int_for_ITEAD-OS_2.0.4-2.0.8.ko -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompGauge/CompGauge.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompGauge/CompGauge.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompGauge/CompGauge.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompGauge/CompGauge.tft -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2folderopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2folderopen.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2lastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2lastnode.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2mlastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2mlastnode.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2plastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2plastnode.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2splitbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2splitbar.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2vertline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2vertline.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompButton/CompButton.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompButton/CompButton.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompButton/CompButton.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompButton/CompButton.tft -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompHotspot/CompHotspot.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompHotspot/CompHotspot.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompHotspot/CompHotspot.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompHotspot/CompHotspot.tft -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompNumber/CompNumber.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompNumber/CompNumber.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompNumber/CompNumber.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompNumber/CompNumber.tft -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompPicture/CompPicture.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompPicture/CompPicture.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompPicture/CompPicture.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompPicture/CompPicture.tft -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompSlider/CompSlider.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompSlider/CompSlider.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompSlider/CompSlider.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompSlider/CompSlider.tft -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/ftv2folderclosed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/doc/Documentation/ftv2folderclosed.png -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompWaveform/CompWaveform.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompWaveform/CompWaveform.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompWaveform/CompWaveform.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompWaveform/CompWaveform.tft -------------------------------------------------------------------------------- /libraries/itead_PN532_SPI/Makefile: -------------------------------------------------------------------------------- 1 | itead_PN532_SPI.o: PN532.cpp PN532.h 2 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include -I. 3 | 4 | -------------------------------------------------------------------------------- /libraries/itead_NRF24L01P/Makefile: -------------------------------------------------------------------------------- 1 | itead_NRF24L01P.o: NRF24L01P.cpp NRF24L01P.h 2 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include -I. 3 | 4 | -------------------------------------------------------------------------------- /libraries/itead_SHT1x/Makefile: -------------------------------------------------------------------------------- 1 | itead_SHT1x.o: SHT1x.cpp SHT1x.h 2 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include -I. -I../itead_IoTgo 3 | 4 | -------------------------------------------------------------------------------- /libraries/itead_GFX/Makefile: -------------------------------------------------------------------------------- 1 | itead_GFX.o: itead_GFX.cpp itead_GFX.h lcd_font.h 2 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include -I. 3 | 4 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_config_8h.js: -------------------------------------------------------------------------------- 1 | var _nex_config_8h = 2 | [ 3 | [ "nexSerial", "group___configuration.html#ga2738b05a77cd5052e440af5b00b0ecbd", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompProgressBar/CompProgressBar.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompProgressBar/CompProgressBar.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompProgressBar/CompProgressBar.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompProgressBar/CompProgressBar.tft -------------------------------------------------------------------------------- /libraries/itead_TinyGPS/Makefile: -------------------------------------------------------------------------------- 1 | itead_TinyGPS.o: itead_TinyGPS.cpp itead_TinyGPS.h 2 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include -I. 3 | 4 | -------------------------------------------------------------------------------- /libraries/itead_nRF24L01-lite/Makefile: -------------------------------------------------------------------------------- 1 | itead_nRF24L01-lite.o: nRF24L01P.cpp nRF24L01P.h 2 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include -I. 3 | 4 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_hotspot.js: -------------------------------------------------------------------------------- 1 | var class_nex_hotspot = 2 | [ 3 | [ "NexHotspot", "class_nex_hotspot.html#ad2408e74f5445941897702c4c78fddbf", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompDualStateButton/CompDualStateButton: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompDualStateButton/CompDualStateButton -------------------------------------------------------------------------------- /tools/test/test_analogRead.ino: -------------------------------------------------------------------------------- 1 | int val = 0; 2 | 3 | void setup() { 4 | val = analogRead(AIN0); 5 | printf("val is %d\n",val); 6 | } 7 | 8 | void loop() { 9 | exit(0); 10 | } -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_8dcbebf38b229bfa7bb34d68bf824093.js: -------------------------------------------------------------------------------- 1 | var dir_8dcbebf38b229bfa7bb34d68bf824093 = 2 | [ 3 | [ "CompCrop.ino", "_comp_crop_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_a48692e2802a027399b146b680655303.js: -------------------------------------------------------------------------------- 1 | var dir_a48692e2802a027399b146b680655303 = 2 | [ 3 | [ "CompGauge.ino", "_comp_gauge_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_c918e8bf3fc71f849978cdb0d900e61c.js: -------------------------------------------------------------------------------- 1 | var dir_c918e8bf3fc71f849978cdb0d900e61c = 2 | [ 3 | [ "CompText.ino", "_comp_text_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_f76977d9ffe8ddf3ad01f3d689aa5df4.js: -------------------------------------------------------------------------------- 1 | var dir_f76977d9ffe8ddf3ad01f3d689aa5df4 = 2 | [ 3 | [ "CompPage.ino", "_comp_page_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/group___configuration.js: -------------------------------------------------------------------------------- 1 | var group___configuration = 2 | [ 3 | [ "nexSerial", "group___configuration.html#ga2738b05a77cd5052e440af5b00b0ecbd", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompDualStateButton/CompDualStateButton.HMI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompDualStateButton/CompDualStateButton.HMI -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompDualStateButton/CompDualStateButton.tft: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itead/Segnix/HEAD/libraries/itead_Nextion/examples/CompDualStateButton/CompDualStateButton.tft -------------------------------------------------------------------------------- /libraries/itead_SSD1306/Makefile: -------------------------------------------------------------------------------- 1 | itead_SSD1306.o: itead_SSD1306.cpp itead_SSD1306.h 2 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include -I. -I../itead_GFX 3 | 4 | -------------------------------------------------------------------------------- /libraries/itead_LiquidCrystal/Makefile: -------------------------------------------------------------------------------- 1 | itead_LiquidCrystal.o: itead_LiquidCrystal.cpp itead_LiquidCrystal.h 2 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include -I. 3 | 4 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_2af451c22587252d0014dbc596e2e19a.js: -------------------------------------------------------------------------------- 1 | var dir_2af451c22587252d0014dbc596e2e19a = 2 | [ 3 | [ "CompNumber.ino", "_comp_number_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_472f54fb1d9b74971d8e15d62f212bd3.js: -------------------------------------------------------------------------------- 1 | var dir_472f54fb1d9b74971d8e15d62f212bd3 = 2 | [ 3 | [ "CompSlider.ino", "_comp_slider_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_4b43661efaa18af91f213d2681ebd37e.js: -------------------------------------------------------------------------------- 1 | var dir_4b43661efaa18af91f213d2681ebd37e = 2 | [ 3 | [ "CompWaveform.ino", "_comp_waveform_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_9bbf8342b0f9a157b7af08fe1412fc17.js: -------------------------------------------------------------------------------- 1 | var dir_9bbf8342b0f9a157b7af08fe1412fc17 = 2 | [ 3 | [ "CompButton.ino", "_comp_button_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_ce36ac18ad3deaf5eae0bd2e09775a7d.js: -------------------------------------------------------------------------------- 1 | var dir_ce36ac18ad3deaf5eae0bd2e09775a7d = 2 | [ 3 | [ "CompPicture.ino", "_comp_picture_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_f3d39c87bc262720c50d5e3885667b8a.js: -------------------------------------------------------------------------------- 1 | var dir_f3d39c87bc262720c50d5e3885667b8a = 2 | [ 3 | [ "CompHotspot.ino", "_comp_hotspot_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_7962cac16a99e8bbaaea18abede03fcb.js: -------------------------------------------------------------------------------- 1 | var dir_7962cac16a99e8bbaaea18abede03fcb = 2 | [ 3 | [ "CompProgressBar.ino", "_comp_progress_bar_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_3a828b7214103d705cc83e20f29bdad9.js: -------------------------------------------------------------------------------- 1 | var dir_3a828b7214103d705cc83e20f29bdad9 = 2 | [ 3 | [ "CompDualStateButton.ino", "_comp_dual_state_button_8ino_source.html", null ] 4 | ]; -------------------------------------------------------------------------------- /bootloader/Makefile: -------------------------------------------------------------------------------- 1 | 2 | OBJS := iteadboot.o 3 | 4 | .PHONY: all 5 | all: $(OBJS) 6 | 7 | .PHONY: clean 8 | clean: 9 | rm -rf $(OBJS) 10 | 11 | %.o : %.cpp 12 | $(SDK_CPP_COMPILE) -c -o $@ $< 13 | 14 | -------------------------------------------------------------------------------- /tools/test/blink.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python 2 | from iteadsdk import * 3 | LED = GPIO1_21 4 | pinMode(LED, OUTPUT) 5 | while True: 6 | digitalWrite(LED, HIGH) 7 | delay(1000) 8 | digitalWrite(LED, LOW) 9 | delay(1000) 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_page.js: -------------------------------------------------------------------------------- 1 | var class_nex_page = 2 | [ 3 | [ "NexPage", "class_nex_page.html#a8608a0400bd8e27466ca4bbc05b5c2a0", null ], 4 | [ "show", "class_nex_page.html#a5714e41d4528b991eda4bbe578005418", null ] 5 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_hardware_8h.js: -------------------------------------------------------------------------------- 1 | var _nex_hardware_8h = 2 | [ 3 | [ "nexInit", "group___core_a_p_i.html#gab09ddba6b72334d30ae091a7b038d790", null ], 4 | [ "nexLoop", "group___core_a_p_i.html#ga91c549e696b0ca035cf18901e6a50d5a", null ] 5 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_object.js: -------------------------------------------------------------------------------- 1 | var class_nex_object = 2 | [ 3 | [ "NexObject", "class_nex_object.html#ab15aadb9c91d9690786d8d25d12d94e1", null ], 4 | [ "printObjInfo", "class_nex_object.html#abeff0c61474e8b3ce6bac76771820b64", null ] 5 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_hardware_8cpp.js: -------------------------------------------------------------------------------- 1 | var _nex_hardware_8cpp = 2 | [ 3 | [ "nexInit", "group___core_a_p_i.html#gab09ddba6b72334d30ae091a7b038d790", null ], 4 | [ "nexLoop", "group___core_a_p_i.html#ga91c549e696b0ca035cf18901e6a50d5a", null ] 5 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_waveform.js: -------------------------------------------------------------------------------- 1 | var class_nex_waveform = 2 | [ 3 | [ "NexWaveform", "class_nex_waveform.html#a4f18ca5050823e874d526141c8595514", null ], 4 | [ "addValue", "class_nex_waveform.html#a5b04ea7397b784947b845e2a03fc77e4", null ] 5 | ]; -------------------------------------------------------------------------------- /tools/final-itead.rules: -------------------------------------------------------------------------------- 1 | # 2 | # copy this file to /etc/udev/rules.d/ 3 | # 4 | #KERNEL=="i2c-*" MODE="0766" 5 | #KERNEL=="spidev*" MODE="0766" 6 | #KERNEL=="ttyS*" MODE="0766" 7 | #KERNEL=="mem" MODE="0766" 8 | #KERNEL=="ttyAMA*" MODE="0766" 9 | #KERNEL=="itead_gpio_int" MODE="0766" 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_crop.js: -------------------------------------------------------------------------------- 1 | var class_nex_crop = 2 | [ 3 | [ "NexCrop", "class_nex_crop.html#a1a3a195d3da05cb832f91a2ef43f27d3", null ], 4 | [ "getPic", "class_nex_crop.html#a2cbfe125182626965dd530f14ab55885", null ], 5 | [ "setPic", "class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db", null ] 6 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_text.js: -------------------------------------------------------------------------------- 1 | var class_nex_text = 2 | [ 3 | [ "NexText", "class_nex_text.html#a38b4dd752d39bfda4ef7642b43ded91a", null ], 4 | [ "getText", "class_nex_text.html#a9cf417b2f25df2872492c55bdc9f5b30", null ], 5 | [ "setText", "class_nex_text.html#a19589b32c981436a1bbcfe407bc766e3", null ] 6 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_gauge.js: -------------------------------------------------------------------------------- 1 | var class_nex_gauge = 2 | [ 3 | [ "NexGauge", "class_nex_gauge.html#ac79040067d42f7f1ba16cc4a1dfd8b9b", null ], 4 | [ "getValue", "class_nex_gauge.html#aeea8933513ebba11584ad97f8c8b5e69", null ], 5 | [ "setValue", "class_nex_gauge.html#a448ce9ad69f54c156c325d578a96b765", null ] 6 | ]; -------------------------------------------------------------------------------- /lib/Makefile: -------------------------------------------------------------------------------- 1 | 2 | .PHONY: all 3 | all: libiteadc.so libiteadcpp.so 4 | 5 | .PHONY: libiteadc.so 6 | libiteadc.so: 7 | $(MAKE) -C c $@ 8 | mv c/$@ ./ 9 | 10 | .PHONY: libiteadcpp.so 11 | libiteadcpp.so: 12 | $(MAKE) -C cpp $@ 13 | mv cpp/$@ ./ 14 | 15 | .PHONY: clean 16 | clean: 17 | rm -rf libiteadc.so libiteadcpp.so 18 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_button.js: -------------------------------------------------------------------------------- 1 | var class_nex_button = 2 | [ 3 | [ "NexButton", "class_nex_button.html#a57d346614059bac40aff955a0dc9d76a", null ], 4 | [ "getText", "class_nex_button.html#a5ba1f74aa94b41b98172e42583ee13d6", null ], 5 | [ "setText", "class_nex_button.html#a649dafc5afb1dc7f1fc1bde1e6270290", null ] 6 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_number.js: -------------------------------------------------------------------------------- 1 | var class_nex_number = 2 | [ 3 | [ "NexNumber", "class_nex_number.html#a59c2ed35b787f498e7fbc54eff71d00b", null ], 4 | [ "getValue", "class_nex_number.html#ad184ed818666ec482efddf840185c7b8", null ], 5 | [ "setValue", "class_nex_number.html#a9cef51f6b76b4ba03a31b2427ffd4526", null ] 6 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_slider.js: -------------------------------------------------------------------------------- 1 | var class_nex_slider = 2 | [ 3 | [ "NexSlider", "class_nex_slider.html#a00c5678209c936e9a57c14b6e2384774", null ], 4 | [ "getValue", "class_nex_slider.html#a384d5488b421efd6affbfd32f45bb107", null ], 5 | [ "setValue", "class_nex_slider.html#a3f325bda4db913e302e94a4b25de7b5f", null ] 6 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_picture.js: -------------------------------------------------------------------------------- 1 | var class_nex_picture = 2 | [ 3 | [ "NexPicture", "class_nex_picture.html#aa6096defacd933e8bff5283c83200459", null ], 4 | [ "getPic", "class_nex_picture.html#a11bd68ef9fe1d03d9e0d02ef1c7527e9", null ], 5 | [ "setPic", "class_nex_picture.html#ab1c6adff615d48261ce10c2095859abd", null ] 6 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/modules.js: -------------------------------------------------------------------------------- 1 | var modules = 2 | [ 3 | [ "Get Started", "group___get_started.html", null ], 4 | [ "Configuration", "group___configuration.html", "group___configuration" ], 5 | [ "Nextion Component", "group___component.html", "group___component" ], 6 | [ "Core API", "group___core_a_p_i.html", "group___core_a_p_i" ] 7 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_touch_8h.js: -------------------------------------------------------------------------------- 1 | var _nex_touch_8h = 2 | [ 3 | [ "NEX_EVENT_POP", "group___touch_event.html#ga5db3d99f88ac878875ca47713b7a54b6", null ], 4 | [ "NEX_EVENT_PUSH", "group___touch_event.html#ga748c37a9bbe04ddc680fe1686154fefb", null ], 5 | [ "NexTouchEventCb", "group___touch_event.html#ga162dea47b078e8878d10d6981a9dd0c6", null ] 6 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_d_s_button.js: -------------------------------------------------------------------------------- 1 | var class_nex_d_s_button = 2 | [ 3 | [ "NexDSButton", "class_nex_d_s_button.html#a226edd2467f2fdf54848f5235b808e2b", null ], 4 | [ "getValue", "class_nex_d_s_button.html#a63e08f9a79f326c47aa66e1d0f9648c8", null ], 5 | [ "setValue", "class_nex_d_s_button.html#a2f696207609e0f01aadebb8b3826b0fa", null ] 6 | ]; -------------------------------------------------------------------------------- /driver/itead_gpio_int/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Change KERN_DIR to your linux-sunxi-3.4 source tree 3 | # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 4 | # 5 | KERN_DIR = /your-linux-sunxi-3.4 6 | 7 | all: 8 | make -C $(KERN_DIR) M=`pwd` modules 9 | 10 | clean: 11 | make -C $(KERN_DIR) M=`pwd` modules clean 12 | rm -rf modules.order 13 | 14 | obj-m += itead_gpio_int.o -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_progress_bar.js: -------------------------------------------------------------------------------- 1 | var class_nex_progress_bar = 2 | [ 3 | [ "NexProgressBar", "class_nex_progress_bar.html#a61f76f0c855c7839630dbc930e3401d8", null ], 4 | [ "getValue", "class_nex_progress_bar.html#a3e5eb13b2aa014c8f6a9e16439917bf2", null ], 5 | [ "setValue", "class_nex_progress_bar.html#aaa7937d364cb63151bd1e1bc4729334d", null ] 6 | ]; -------------------------------------------------------------------------------- /driver/itead_a20_core_spi/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Change KERN_DIR to your linux-sunxi-3.4 source tree 3 | # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 4 | # 5 | KERN_DIR = /your-linux-sunxi-3.4 6 | 7 | 8 | all: 9 | make -C $(KERN_DIR) M=`pwd` modules 10 | 11 | clean: 12 | make -C $(KERN_DIR) M=`pwd` modules clean 13 | rm -rf modules.order 14 | 15 | obj-m += spi-sun7i.o 16 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/Makefile: -------------------------------------------------------------------------------- 1 | 2 | OBJS := call.o 3 | OBJS += gps.o 4 | OBJS += GSM.o 5 | OBJS += inetGSM.o 6 | OBJS += LOG.o 7 | OBJS += SIM900.o 8 | OBJS += sms.o 9 | OBJS += WideTextFinder.o 10 | 11 | 12 | itead_GSM-GPRS-GPS.o: $(OBJS) 13 | $(SDK_LINKER) -r -o $@ $^ 14 | rm -rf $^ 15 | 16 | %.o:%.cpp 17 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include 18 | 19 | -------------------------------------------------------------------------------- /tools/test/test_cpp_spi.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char **argv) 4 | { 5 | uint8_t rx = 0; 6 | uint8_t i=0; 7 | int index = 0; 8 | 9 | SPI1.begin(); 10 | SPI1.setDataMode(SPI_MODE0); 11 | SPI1.setBitOrder(MSBFIRST); 12 | for(index=0;index<256;index++) 13 | { 14 | rx = SPI1.transfer(index); 15 | printf("Read 0x%x \n", rx); 16 | } 17 | SPI1.end(); 18 | 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /libraries/itead_LiquidCrystal/README.txt: -------------------------------------------------------------------------------- 1 | Declaration 2 | =========== 3 | 4 | the files within this directory is copied from arduino-1.0.5/libraries/LiquidCrystal 5 | and modified by Wu Pengfei to be compitable with IteadOS 6 | SDK and products of ITEAD Intelligent Systems Co.,Ltd.(http://imall.iteadstudio.com/). 7 | 8 | LICENSE 9 | ======= 10 | 11 | license.txt within this directory is a copy of Arduino IDE Source License. 12 | All right reserved by Arduino. 13 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_touch.js: -------------------------------------------------------------------------------- 1 | var class_nex_touch = 2 | [ 3 | [ "NexTouch", "class_nex_touch.html#a9e028e45e0d2d2cc39c8bf8d03dbb887", null ], 4 | [ "attachPop", "class_nex_touch.html#a4da1c4fcdfadb7eabfb9ccaba9ecad11", null ], 5 | [ "attachPush", "class_nex_touch.html#a685a753aae5eb9fb9866a7807a310132", null ], 6 | [ "detachPop", "class_nex_touch.html#af656640c1078a553287a68bf792dd291", null ], 7 | [ "detachPush", "class_nex_touch.html#a2bc36096119534344c2bcd8021b93289", null ] 8 | ]; -------------------------------------------------------------------------------- /SDK_Python/BOARD_RASPBERRY_PI_RV2_GPIO.py: -------------------------------------------------------------------------------- 1 | # 2 | # GPIO PIN NAME for BOARD_RASPBERRY_PI_RV2 3 | # 4 | GPIO2 = 3 5 | GPIO3 = 5 6 | GPIO4 = 7 7 | GPIO14 = 8 8 | GPIO15 = 10 9 | GPIO17 = 11 10 | GPIO18 = 12 11 | GPIO27 = 13 12 | GPIO22 = 15 13 | GPIO23 = 16 14 | GPIO24 = 18 15 | GPIO10 = 19 16 | GPIO9 = 21 17 | GPIO25 = 22 18 | GPIO11 = 23 19 | GPIO8 = 24 20 | GPIO7 = 26 21 | GPIO28 = 29 22 | GPIO29 = 30 23 | GPIO30 = 31 24 | GPIO31 = 32 25 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/group___core_a_p_i.js: -------------------------------------------------------------------------------- 1 | var group___core_a_p_i = 2 | [ 3 | [ "Touch Event", "group___touch_event.html", "group___touch_event" ], 4 | [ "NexObject", "class_nex_object.html", [ 5 | [ "NexObject", "class_nex_object.html#ab15aadb9c91d9690786d8d25d12d94e1", null ], 6 | [ "printObjInfo", "class_nex_object.html#abeff0c61474e8b3ce6bac76771820b64", null ] 7 | ] ], 8 | [ "nexInit", "group___core_a_p_i.html#gab09ddba6b72334d30ae091a7b038d790", null ], 9 | [ "nexLoop", "group___core_a_p_i.html#ga91c549e696b0ca035cf18901e6a50d5a", null ] 10 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/Makefile: -------------------------------------------------------------------------------- 1 | 2 | OBJS := NexButton.o 3 | OBJS += NexCrop.o 4 | OBJS += NexGauge.o 5 | OBJS += NexHardware.o 6 | OBJS += NexHotspot.o 7 | OBJS += NexObject.o 8 | OBJS += NexPage.o 9 | OBJS += NexPicture.o 10 | OBJS += NexProgressBar.o 11 | OBJS += NexSlider.o 12 | OBJS += NexText.o 13 | OBJS += NexTouch.o 14 | OBJS += NexWaveform.o 15 | OBJS += NexDualStateButton.o 16 | OBJS += NexNumber.o 17 | 18 | itead_Nextion.o: $(OBJS) 19 | $(SDK_LINKER) -r -o $@ $^ 20 | rm -rf $^ 21 | 22 | %.o:%.cpp 23 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /SDK_Python/BOARD_RASPBERRY_PI_MODEL_BPLUS_GPIO.py: -------------------------------------------------------------------------------- 1 | # 2 | # GPIO PIN NAME for BOARD_RASPBERRY_PI_MODEL_BPLUS 3 | # 4 | GPIO2 = 3 5 | GPIO3 = 5 6 | GPIO4 = 7 7 | GPIO14 = 8 8 | GPIO15 = 10 9 | GPIO17 = 11 10 | GPIO18 = 12 11 | GPIO27 = 13 12 | GPIO22 = 15 13 | GPIO23 = 16 14 | GPIO24 = 18 15 | GPIO10 = 19 16 | GPIO9 = 21 17 | GPIO25 = 22 18 | GPIO11 = 23 19 | GPIO8 = 24 20 | GPIO7 = 26 21 | GPIO5 = 27 22 | GPIO6 = 28 23 | GPIO12 = 29 24 | GPIO13 = 30 25 | GPIO16 = 31 26 | GPIO19 = 32 27 | GPIO20 = 33 28 | GPIO21 = 34 29 | GPIO26 = 35 30 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/group___touch_event.dot: -------------------------------------------------------------------------------- 1 | digraph "Touch Event" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | rankdir=LR; 6 | Node0 [label="Touch Event",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 7 | Node1 [label="Core API",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$group___core_a_p_i.html",tooltip="Some essential things. "]; 8 | Node1->Node0 [shape=plaintext, color="midnightblue", dir="back", style="solid"]; 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/release_notes.md: -------------------------------------------------------------------------------- 1 | # Release Notes 2 | 3 | -------------------------------------------------------------------------------- 4 | 5 | # Release v0.7.0 6 | 7 | - version: v0.7.0 8 | - base: no base version 9 | - author: Wu Pengfei 10 | - date: 8/20/2015 13:17:20 11 | 12 | ## Brief 13 | 14 | Support all components in Nextion Editor v0.26. 15 | 16 | ## Details 17 | 18 | First release. 19 | 20 | 21 | -------------------------------------------------------------------------------- 22 | 23 | # The End! 24 | 25 | -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_gauge__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexGauge" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexGauge",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 8 | } 9 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_touch__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexTouch" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 8 | } 9 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_8dcbebf38b229bfa7bb34d68bf824093_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompCrop" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_8dcbebf38b229bfa7bb34d68bf824093 [shape=box, label="CompCrop", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_8dcbebf38b229bfa7bb34d68bf824093.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_a48692e2802a027399b146b680655303_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompGauge" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_a48692e2802a027399b146b680655303 [shape=box, label="CompGauge", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_a48692e2802a027399b146b680655303.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_c918e8bf3fc71f849978cdb0d900e61c_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompText" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_c918e8bf3fc71f849978cdb0d900e61c [shape=box, label="CompText", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_c918e8bf3fc71f849978cdb0d900e61c.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_f76977d9ffe8ddf3ad01f3d689aa5df4_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompPage" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_f76977d9ffe8ddf3ad01f3d689aa5df4 [shape=box, label="CompPage", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_f76977d9ffe8ddf3ad01f3d689aa5df4.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_gauge__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexGauge" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexGauge",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 8 | } 9 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_2af451c22587252d0014dbc596e2e19a_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompNumber" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_2af451c22587252d0014dbc596e2e19a [shape=box, label="CompNumber", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_2af451c22587252d0014dbc596e2e19a.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_472f54fb1d9b74971d8e15d62f212bd3_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompSlider" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_472f54fb1d9b74971d8e15d62f212bd3 [shape=box, label="CompSlider", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_472f54fb1d9b74971d8e15d62f212bd3.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_9bbf8342b0f9a157b7af08fe1412fc17_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompButton" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_9bbf8342b0f9a157b7af08fe1412fc17 [shape=box, label="CompButton", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_9bbf8342b0f9a157b7af08fe1412fc17.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_ce36ac18ad3deaf5eae0bd2e09775a7d_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompPicture" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_ce36ac18ad3deaf5eae0bd2e09775a7d [shape=box, label="CompPicture", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_ce36ac18ad3deaf5eae0bd2e09775a7d.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_f3d39c87bc262720c50d5e3885667b8a_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompHotspot" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_f3d39c87bc262720c50d5e3885667b8a [shape=box, label="CompHotspot", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_f3d39c87bc262720c50d5e3885667b8a.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_waveform__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexWaveform" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexWaveform",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 8 | } 9 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_4b43661efaa18af91f213d2681ebd37e_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompWaveform" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_4b43661efaa18af91f213d2681ebd37e [shape=box, label="CompWaveform", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_4b43661efaa18af91f213d2681ebd37e.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_nRF24L01-lite/examples/txdemo/txdemo.ino: -------------------------------------------------------------------------------- 1 | #include "nRF24L01P.h" 2 | 3 | /* ce, cs, SPI */ 4 | nRF24L01P rf24l01p(11,109,SPI); 5 | 6 | void setup() 7 | { 8 | 9 | rf24l01p.nRF24L01_HW_Init(); 10 | rf24l01p.nRF24L01_Set_TX_Address(0x01,0x23,0x45,0x67,0x89); 11 | rf24l01p.nRF24L01_Config(120,P0dBm,3); 12 | rf24l01p.TX_Mode(); 13 | 14 | } 15 | void loop() 16 | { 17 | unsigned char send_buffer[TX_PLOAD_WIDTH]; 18 | for(int i=0;i Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 8 | } 9 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_7962cac16a99e8bbaaea18abede03fcb_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompProgressBar" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_7962cac16a99e8bbaaea18abede03fcb [shape=box, label="CompProgressBar", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_7962cac16a99e8bbaaea18abede03fcb.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_progress_bar__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexProgressBar" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexProgressBar",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 8 | } 9 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_3a828b7214103d705cc83e20f29bdad9_dep.dot: -------------------------------------------------------------------------------- 1 | digraph "examples/CompDualStateButton" { 2 | compound=true 3 | node [ fontsize="10", fontname="Helvetica"]; 4 | edge [ labelfontsize="10", labelfontname="Helvetica"]; 5 | subgraph clusterdir_d28a4824dc47e487b107a5db32ef43c4 { 6 | graph [ bgcolor="#ddddee", pencolor="black", label="examples" fontname="Helvetica", fontsize="10", URL="dir_d28a4824dc47e487b107a5db32ef43c4.html"] 7 | dir_3a828b7214103d705cc83e20f29bdad9 [shape=box, label="CompDualStateButton", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_3a828b7214103d705cc83e20f29bdad9.html"]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_progress_bar__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexProgressBar" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexProgressBar",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 8 | } 9 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/gps.h: -------------------------------------------------------------------------------- 1 | #ifndef _GPS_H_ 2 | #define _GPS_H_ 3 | 4 | #include "SIM900.h" 5 | 6 | class GPSGSM { 7 | #if 1 // add by wpf 8 | public: 9 | SIMCOM900 *_gsm; 10 | #endif 11 | 12 | 13 | public: 14 | GPSGSM(SIMCOM900 & gsm_); 15 | char getBattInf(char *str_perc, char *str_vol); 16 | char getBattTVol(char *str_vol); 17 | char attachGPS(); 18 | char deattachGPS(); 19 | char getStat(); 20 | char getPar(char *str_long, char *str_lat, char *str_alt, char *str_time, char *speed); 21 | void parseTime(char *field, int *time); 22 | double convertLat(void); 23 | double convertLong(void); 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /examples/Basics/BareMinimum/BareMinimum.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * @example BareMinimum.ino 3 | * 4 | * @copyright 5 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License as 8 | * published by the Free Software Foundation; either version 2 of 9 | * the License, or (at your option) any later version. 10 | */ 11 | 12 | void setup() { 13 | // put your setup code here, to run once: 14 | printf("setup()\n"); 15 | } 16 | 17 | void loop() { 18 | // put your main code here, to run repeatedly: 19 | printf("loop()\n"); 20 | delay(1000); 21 | } 22 | -------------------------------------------------------------------------------- /SDK_Python/BOARD_BEAGLE_BONE_BLACK_GPIO.py: -------------------------------------------------------------------------------- 1 | # 2 | # GPIO PIN NAME for BOARD_BEAGLEBONEBLACK 3 | # 4 | def GPIO_NUM(x,y): 5 | return (32 * (x) + (y)) 6 | 7 | GPIO0_22 = GPIO_NUM(0,22) 8 | GPIO0_23 = GPIO_NUM(0,23) 9 | GPIO0_26 = GPIO_NUM(0,26) 10 | GPIO0_27 = GPIO_NUM(0,27) 11 | GPIO1_12 = GPIO_NUM(1,12) 12 | GPIO1_13 = GPIO_NUM(1,13) 13 | GPIO1_14 = GPIO_NUM(1,14) 14 | GPIO1_15 = GPIO_NUM(1,15) 15 | GPIO1_16 = GPIO_NUM(1,16) 16 | GPIO1_17 = GPIO_NUM(1,17) 17 | GPIO1_18 = GPIO_NUM(1,18) 18 | GPIO1_19 = GPIO_NUM(1,19) 19 | GPIO1_28 = GPIO_NUM(1,28) 20 | GPIO1_29 = GPIO_NUM(1,29) 21 | GPIO2_1 = GPIO_NUM(2,1) 22 | GPIO3_19 = GPIO_NUM(3,19) 23 | GPIO3_21 = GPIO_NUM(3,21) 24 | 25 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/group___core_a_p_i.dot: -------------------------------------------------------------------------------- 1 | digraph "Core API" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | rankdir=LR; 6 | Node1 [label="Touch Event",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$group___touch_event.html",tooltip="How to attach(or detach) callback function called when touch event occurs. "]; 7 | Node0 [label="Core API",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 8 | Node0->Node1 [shape=plaintext, color="midnightblue", dir="back", style="solid"]; 9 | } 10 | -------------------------------------------------------------------------------- /tools/test/test_spi.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python 2 | 3 | from iteadsdk import * 4 | 5 | 6 | def test_spi(val): 7 | SPI.begin() 8 | SPI.setBitOrder(MSBFIRST) 9 | SPI.setDataMode(SPI_MODE0) 10 | SPI.setClockDivider(SPI_CLOCK_DIV8) 11 | ret = SPI.transfer(val) 12 | SPI.end() 13 | print "ret =", hex(ret) 14 | 15 | 16 | ############################################################################### 17 | # main function 18 | ############################################################################### 19 | def main(): 20 | print 'BOARD_TYPE =', BOARD_TYPE 21 | for i in range(256): 22 | test_spi(i) 23 | 24 | print "test spi exit normally!" 25 | 26 | if __name__ == '__main__': main() 27 | 28 | 29 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexHotspot.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexHotspot.cpp 3 | * 4 | * The implementation of class NexHotspot. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #include "NexHotspot.h" 17 | 18 | NexHotspot::NexHotspot(uint8_t pid, uint8_t cid, const char *name) 19 | :NexTouch(pid, cid, name) 20 | { 21 | } 22 | 23 | -------------------------------------------------------------------------------- /libraries/itead_IoTgo/README.md: -------------------------------------------------------------------------------- 1 | # IoTgo Device Library Help 2 | 3 | ## Documentation 4 | 5 | Online API documentation can be reached at . 6 | 7 | More about IoTgo open source cloud platform at https://github.com/itead/IoTgo-Platform. 8 | 9 | ## How to get started 10 | 11 | On the homepage of API documentation, the tabs of Modules, Classes and Examples 12 | will be useful for developers of Segnix and Arduino. 13 | 14 | # Author 15 | 16 | - Author: Wu Pengfei(pengfei.wu@itead.cc) 17 | - Date: 11/20/2014 6:27:43 PM 18 | 19 | 20 | ------------------------------------------------------------------------------- 21 | 22 | # The End! 23 | 24 | ------------------------------------------------------------------------------- 25 | -------------------------------------------------------------------------------- /libraries/itead_NRF24L01P/examples/recv/recv.ino: -------------------------------------------------------------------------------- 1 | /* Recv Demo */ 2 | #include 3 | #include 4 | 5 | NRF24L01P rf24l01p; 6 | uint8_t buffer[24]; 7 | uint8_t from[5] = {0}; /* Must be 5 Byte */ 8 | uint8_t addr[5] = {0x11,0x22,0x33,0x44,0x02}; /* Must be 24 Byte */ 9 | int8_t ret; 10 | 11 | void setup() 12 | { 13 | rf24l01p.begin(11,109,PWR_0dBm,AIR_RATE_2Mbps,50,addr); 14 | } 15 | 16 | void loop() 17 | { 18 | ret = rf24l01p.recv_packet(from,buffer); 19 | //printf("ret = %d\n",ret); 20 | printf("From:"); 21 | for(int i=0;i<5;i++) 22 | printf("%X ",from[i]); 23 | 24 | printf("\nRecv(Hex):"); 25 | for(int i=0;i<24;i++) { 26 | printf("%X ",buffer[i]); 27 | } 28 | printf("End\n"); 29 | } 30 | 31 | -------------------------------------------------------------------------------- /libraries/itead_nRF24L01-lite/examples/rxdemo/rxdemo.ino: -------------------------------------------------------------------------------- 1 | #include "nRF24L01P.h" 2 | /* ce, cs, SPI */ 3 | nRF24L01P rf24l01p(11,109,SPI); 4 | 5 | void setup() 6 | { 7 | printf("setup begin()\n"); 8 | rf24l01p.nRF24L01_HW_Init(); 9 | rf24l01p.nRF24L01_Set_RX_Address(0x01,0x23,0x45,0x67,0x89); 10 | rf24l01p.nRF24L01_Config(120,P0dBm,3); 11 | rf24l01p.RX_Mode(); 12 | printf("setup end()\n"); 13 | } 14 | void loop() 15 | { 16 | unsigned char rec_buffer[RX_PLOAD_WIDTH]={0}; 17 | if(rf24l01p.nRF24L01_RxPacket(rec_buffer)) 18 | { 19 | printf("Received(HEX):\n"); 20 | for(int i=0;i Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="itead.h",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled"]; 8 | Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexConfig.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_config_8h.html",tooltip="Options for user can be found here. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/LOG.h: -------------------------------------------------------------------------------- 1 | /* 2 | LOG.h - Library for standard logging convention. 3 | Created by Meir Michanie, June 9, 2010. 4 | Released into the public domain. 5 | Version 0.1 6 | */ 7 | 8 | #ifndef LOG_h 9 | #define LOG_h 10 | #if 0 // disabled by wpf 11 | #include "Arduino.h" 12 | #else 13 | #include 14 | #endif 15 | 16 | class LOG { 17 | public: 18 | LOG(int level); 19 | void DEBUG(const char* string); 20 | void INFO(const char* string); 21 | void WARNING(const char* string); 22 | void CRITICAL(const char* string); 23 | void DATA(const char* string); 24 | void DATA(int number); 25 | 26 | inline int getLevel(void) { 27 | return _level; 28 | } 29 | inline void setLevel(int level) { 30 | _level = level; 31 | } 32 | 33 | private: 34 | int _level; 35 | }; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/group___touch_event.js: -------------------------------------------------------------------------------- 1 | var group___touch_event = 2 | [ 3 | [ "NexTouch", "class_nex_touch.html", [ 4 | [ "NexTouch", "class_nex_touch.html#a9e028e45e0d2d2cc39c8bf8d03dbb887", null ], 5 | [ "attachPop", "class_nex_touch.html#a4da1c4fcdfadb7eabfb9ccaba9ecad11", null ], 6 | [ "attachPush", "class_nex_touch.html#a685a753aae5eb9fb9866a7807a310132", null ], 7 | [ "detachPop", "class_nex_touch.html#af656640c1078a553287a68bf792dd291", null ], 8 | [ "detachPush", "class_nex_touch.html#a2bc36096119534344c2bcd8021b93289", null ] 9 | ] ], 10 | [ "NEX_EVENT_POP", "group___touch_event.html#ga5db3d99f88ac878875ca47713b7a54b6", null ], 11 | [ "NEX_EVENT_PUSH", "group___touch_event.html#ga748c37a9bbe04ddc680fe1686154fefb", null ], 12 | [ "NexTouchEventCb", "group___touch_event.html#ga162dea47b078e8878d10d6981a9dd0c6", null ] 13 | ]; -------------------------------------------------------------------------------- /bootloader/iteadboot.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file iteadboot.cpp 3 | * 4 | * So simple bootloader based on linux for *.ino. 5 | * This is a simple "bootloader" for sources with .ino. 6 | * Maybe you do not need it based on linux develoment environment. 7 | * 8 | * @author Wu Pengfei (email:) 9 | * @date 2014/3/11 10 | * @copyright 11 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 12 | * This program is free software; you can redistribute it and/or 13 | * modify it under the terms of the GNU General Public License as 14 | * published by the Free Software Foundation; either version 2 of 15 | * the License, or (at your option) any later version. 16 | */ 17 | 18 | extern void loop(void); 19 | extern void setup(void); 20 | 21 | int main(int argc,char **argv) 22 | { 23 | setup(); 24 | while(1) { 25 | loop(); 26 | } 27 | return 0; 28 | } 29 | -------------------------------------------------------------------------------- /examples/README.txt: -------------------------------------------------------------------------------- 1 | 2 | Description 3 | =========== 4 | 5 | Examples in this directory(SDK/examples/) is copied from Arduino Source Code. 6 | Some of them may be modified by Wu Pengfei to work well 7 | with Iteaduino Plus A10/A20 or others supported by ITEAD-OS-SDK such as Raspberry Rv2. 8 | 9 | How to Use 10 | ========== 11 | 12 | Step 0: 13 | Install ITEAD-OS-SDK to your stystem . 14 | 15 | Step 1: 16 | You should change some pin numbers to make a example to work well with your 17 | board. 18 | 19 | Step 2: 20 | Run command like this to compile example.ino: 21 | $ iteadcompile NameYouWant example.ino 22 | 23 | Step 3: 24 | Run you program by : 25 | $ ./NameYouWant 26 | 27 | Step 4: 28 | Enjoy !!! 29 | 30 | About Us 31 | ======== 32 | 33 | Home Page : http://imall.iteadstudio.com/ 34 | ITEAD-OS-SDK : https://github.com/iteadsw/SDK -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/hierarchy.js: -------------------------------------------------------------------------------- 1 | var hierarchy = 2 | [ 3 | [ "NexObject", "class_nex_object.html", [ 4 | [ "NexGauge", "class_nex_gauge.html", null ], 5 | [ "NexProgressBar", "class_nex_progress_bar.html", null ], 6 | [ "NexTouch", "class_nex_touch.html", [ 7 | [ "NexButton", "class_nex_button.html", null ], 8 | [ "NexCrop", "class_nex_crop.html", null ], 9 | [ "NexDSButton", "class_nex_d_s_button.html", null ], 10 | [ "NexHotspot", "class_nex_hotspot.html", null ], 11 | [ "NexNumber", "class_nex_number.html", null ], 12 | [ "NexPage", "class_nex_page.html", null ], 13 | [ "NexPicture", "class_nex_picture.html", null ], 14 | [ "NexSlider", "class_nex_slider.html", null ], 15 | [ "NexText", "class_nex_text.html", null ] 16 | ] ], 17 | [ "NexWaveform", "class_nex_waveform.html", null ] 18 | ] ] 19 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/examples.js: -------------------------------------------------------------------------------- 1 | var examples = 2 | [ 3 | [ "CompButton.ino", "_comp_button_8ino-example.html", null ], 4 | [ "CompCrop.ino", "_comp_crop_8ino-example.html", null ], 5 | [ "CompDualStateButton.ino", "_comp_dual_state_button_8ino-example.html", null ], 6 | [ "CompGauge.ino", "_comp_gauge_8ino-example.html", null ], 7 | [ "CompHotspot.ino", "_comp_hotspot_8ino-example.html", null ], 8 | [ "CompNumber.ino", "_comp_number_8ino-example.html", null ], 9 | [ "CompPage.ino", "_comp_page_8ino-example.html", null ], 10 | [ "CompPicture.ino", "_comp_picture_8ino-example.html", null ], 11 | [ "CompProgressBar.ino", "_comp_progress_bar_8ino-example.html", null ], 12 | [ "CompSlider.ino", "_comp_slider_8ino-example.html", null ], 13 | [ "CompText.ino", "_comp_text_8ino-example.html", null ], 14 | [ "CompWaveform.ino", "_comp_waveform_8ino-example.html", null ] 15 | ]; -------------------------------------------------------------------------------- /libraries/itead_NRF24L01P/examples/send/send.ino: -------------------------------------------------------------------------------- 1 | /* Send Demo */ 2 | #include 3 | #include 4 | 5 | NRF24L01P rf24l01p; 6 | uint8_t buffer[24]; 7 | uint8_t to[5] = {0x11,0x22,0x33,0x44,0x02}; /* Must be 5 Byte */ 8 | uint8_t addr[5] = {0x11,0x22,0x33,0x44,0x01}; /* Must be 24 Byte */ 9 | int8_t ret; 10 | 11 | void setup() 12 | { 13 | rf24l01p.begin(SPI,11,109,PWR_0dBm,AIR_RATE_2Mbps,50,addr); 14 | } 15 | 16 | void loop() 17 | { 18 | static uint8_t base=0; 19 | base ++; 20 | if(base >= 10) { 21 | rf24l01p.end(); 22 | exit(0); 23 | } 24 | for(int i=0;i<24;i++) 25 | buffer[i] = i + base; 26 | 27 | ret = rf24l01p.send_packet(to,buffer); 28 | //printf("ret = %d\n",ret); 29 | 30 | printf("Send(Hex):"); 31 | for(int i=0;i<24;i++) { 32 | printf("%X ",buffer[i]); 33 | } 34 | printf("End\n"); 35 | 36 | delay(1000); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /include/itead.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file itead.h 3 | * 4 | * Provide the implementation of Arduino API 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2014/3/11 8 | * @copyright 9 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | #ifndef __ITEAD_H__ 16 | #define __ITEAD_H__ 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_crop__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexCrop" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexCrop",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_page__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexPage" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexPage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_text__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexText" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexText",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_IoTgo/Makefile: -------------------------------------------------------------------------------- 1 | OBJS := Dev_Light.o 2 | OBJS += Dev_Switch.o 3 | OBJS += Dev_THSensor.o 4 | 5 | PYTHON_DIST_DIR := /usr/lib/python2.7/dist-packages 6 | 7 | INSTALL_IOTGO_MODULE_PY_CMD := \ 8 | rm -rf $(PYTHON_DIST_DIR)/IoTgo_module.py* \ 9 | && cp -rf IoTgo_module.py $(PYTHON_DIST_DIR)/ 10 | 11 | INSTALL_IOTGO_MODULE_PY := $(shell $(INSTALL_IOTGO_MODULE_PY_CMD)) 12 | 13 | itead_IoTgo.o: $(OBJS) IoTgo.o 14 | $(SDK_LINKER) -r -o $@ $^ 15 | rm -rf $^ 16 | 17 | PYTHON27_CFLAGS := $(shell python2.7-config --cflags) 18 | PYTHON27_CFLAGS := $(subst -Wstrict-prototypes,,$(PYTHON27_CFLAGS)) 19 | PYTHON27_INCLUDES := $(shell python2.7-config --includes) 20 | 21 | .PHONY: IoTgo.o 22 | IoTgo.o: IoTgo.cpp IoTgo.h 23 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) $(PYTHON27_CFLAGS) -fpic -c -o $@ $< -I../../include 24 | 25 | %.o:%.cpp 26 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -c -o $@ $< -I../../include $(PYTHON27_INCLUDES) 27 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_button__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexButton" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexButton",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_crop__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexCrop" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexCrop",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_number__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexNumber" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexNumber",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_page__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexPage" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexPage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_slider__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexSlider" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexSlider",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_text__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexText" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexText",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_button__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexButton" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexButton",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_hotspot__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexHotspot" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexHotspot",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_hotspot__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexHotspot" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexHotspot",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_number__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexNumber" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexNumber",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_picture__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexPicture" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexPicture",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_picture__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexPicture" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexPicture",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_slider__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexSlider" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexSlider",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_d_s_button__coll__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexDSButton" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexDSButton",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/class_nex_d_s_button__inherit__graph.dot: -------------------------------------------------------------------------------- 1 | digraph "NexDSButton" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexDSButton",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexTouch",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_touch.html",tooltip="Father class of the components with touch events. "]; 8 | Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="NexObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_nex_object.html",tooltip="Root class of all Nextion components. "]; 10 | } 11 | -------------------------------------------------------------------------------- /tools/test/test_serial.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import time 4 | 5 | from iteadsdk import * 6 | 7 | ############################################################################### 8 | # main function 9 | ############################################################################### 10 | def main(): 11 | print 'BOARD_TYPE =', BOARD_TYPE 12 | Serial.begin(115200) 13 | Serial.write(ord('A')); 14 | Serial.write(ord('z')); 15 | Serial.printstr("ABCD\n") 16 | Serial.printstr("1234\n") 17 | varInt = 1257 18 | varFloat = 12.56 19 | Serial.printstr(hex(varInt) + "\n") 20 | Serial.printstr(str(float(varFloat))) 21 | time.sleep(0.1) 22 | #Serial.flush() 23 | 24 | read_str = '' 25 | while Serial.available() > 0: 26 | read_str += chr(Serial.read()) 27 | print "read_str=[%s]" % (read_str) 28 | 29 | Serial.end() 30 | 31 | print "main exit normally!" 32 | 33 | if __name__ == '__main__': main() 34 | -------------------------------------------------------------------------------- /libraries/itead_IoTgo/IoTgo_device.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file IoTgo_device.h 3 | * 4 | * Include all classes of devices supported by IoTgo Library, such as Switch, 5 | * Light and Temperature & Humidity Sensor etc. User can include this 6 | * header file in *.ino or *.cpp source for using IoTgo Library. 7 | * 8 | * @author Wu Pengfei (email:) 9 | * @date 2014/11/20 10 | * @copyright 11 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 12 | * This program is free software; you can redistribute it and/or 13 | * modify it under the terms of the GNU General Public License as 14 | * published by the Free Software Foundation; either version 2 of 15 | * the License, or (at your option) any later version. 16 | */ 17 | 18 | #ifndef __IOTGO_DEVICE_H__ 19 | #define __IOTGO_DEVICE_H__ 20 | 21 | #include "Dev_Switch.h" 22 | #include "Dev_Light.h" 23 | 24 | #include "Dev_THSensor.h" 25 | 26 | 27 | #endif /* #ifndef __IOTGO_DEVICE_H__ */ 28 | 29 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/call.h: -------------------------------------------------------------------------------- 1 | #ifndef _CALL_H_ 2 | #define _CALL_H_ 3 | 4 | #include "SIM900.h" 5 | 6 | class CallGSM { 7 | #if 1 // add by wpf 8 | public: 9 | SIMCOM900 *_gsm; 10 | #endif 11 | public: 12 | #if 1 // add by wpf 13 | CallGSM(SIMCOM900 & gsm_); 14 | #endif 15 | // finds out the status of call 16 | byte CallStatus(void); 17 | byte CallStatusWithAuth(char *phone_number, 18 | byte first_authorized_pos, byte last_authorized_pos); 19 | // picks up an incoming call 20 | void PickUp(void); 21 | // hangs up an incomming call 22 | void HangUp(void); 23 | // calls the specific number 24 | void Call(char *number_string); 25 | // makes a call to the number stored at the specified SIM position 26 | void Call(int sim_position); 27 | void SendDTMF(char *number_string, int time); 28 | 29 | void SetDTMF(int DTMF_status); 30 | char DetDTMF(); 31 | 32 | }; 33 | 34 | #endif 35 | 36 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexWaveform.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexWaveform.cpp 3 | * 4 | * The implementation of class NexWaveform. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | #include "NexWaveform.h" 16 | 17 | NexWaveform::NexWaveform(uint8_t pid, uint8_t cid, const char *name) 18 | :NexObject(pid, cid, name) 19 | { 20 | } 21 | 22 | bool NexWaveform::addValue(uint8_t ch, uint8_t number) 23 | { 24 | char buf[15] = {0}; 25 | 26 | if (ch > 3) 27 | { 28 | return false; 29 | } 30 | 31 | sprintf(buf, "add %u,%u,%u", getObjCid(), ch, number); 32 | 33 | sendCommand(buf); 34 | return true; 35 | } 36 | 37 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/annotated.js: -------------------------------------------------------------------------------- 1 | var annotated = 2 | [ 3 | [ "NexButton", "class_nex_button.html", "class_nex_button" ], 4 | [ "NexCrop", "class_nex_crop.html", "class_nex_crop" ], 5 | [ "NexDSButton", "class_nex_d_s_button.html", "class_nex_d_s_button" ], 6 | [ "NexGauge", "class_nex_gauge.html", "class_nex_gauge" ], 7 | [ "NexHotspot", "class_nex_hotspot.html", "class_nex_hotspot" ], 8 | [ "NexNumber", "class_nex_number.html", "class_nex_number" ], 9 | [ "NexObject", "class_nex_object.html", "class_nex_object" ], 10 | [ "NexPage", "class_nex_page.html", "class_nex_page" ], 11 | [ "NexPicture", "class_nex_picture.html", "class_nex_picture" ], 12 | [ "NexProgressBar", "class_nex_progress_bar.html", "class_nex_progress_bar" ], 13 | [ "NexSlider", "class_nex_slider.html", "class_nex_slider" ], 14 | [ "NexText", "class_nex_text.html", "class_nex_text" ], 15 | [ "NexTouch", "class_nex_touch.html", "class_nex_touch" ], 16 | [ "NexWaveform", "class_nex_waveform.html", "class_nex_waveform" ] 17 | ]; -------------------------------------------------------------------------------- /SDK_Python/BOARD_ITEAD_CORE_EVB_GPIO.py: -------------------------------------------------------------------------------- 1 | # 2 | # GPIO PIN NAME for BOARD_ITEAD_CORE_EVB 3 | # 4 | PB5 = 0 5 | PB6 = 1 6 | PB7 = 2 7 | PB8 = 3 8 | PB18 = 4 9 | PB19 = 5 10 | PB20 = 6 11 | PB21 = 7 12 | PB22 = 8 13 | PB23 = 9 14 | PD0 = 10 15 | PD1 = 11 16 | PD2 = 12 17 | PD3 = 13 18 | PD4 = 14 19 | PD5 = 15 20 | PD6 = 16 21 | PD7 = 17 22 | PD8 = 18 23 | PD9 = 19 24 | PD10 = 20 25 | PD11 = 21 26 | PD12 = 22 27 | PD13 = 23 28 | PD14 = 24 29 | PD15 = 25 30 | PD16 = 26 31 | PD17 = 27 32 | PD18 = 28 33 | PD19 = 29 34 | PD20 = 30 35 | PD21 = 31 36 | PD22 = 32 37 | PD23 = 33 38 | PD24 = 34 39 | PD25 = 35 40 | PD26 = 36 41 | PD27 = 37 42 | PG0 = 38 43 | PG1 = 39 44 | PG2 = 40 45 | PG3 = 41 46 | PG4 = 42 47 | PG5 = 43 48 | PG6 = 44 49 | PG7 = 45 50 | PG8 = 46 51 | PG9 = 47 52 | PG10 = 48 53 | PG11 = 49 54 | PI10 = 109 55 | PI11 = 110 56 | PI12 = 111 57 | PI13 = 112 58 | PI14 = 137 59 | PI15 = 138 60 | PI16 = 78 61 | PI17 = 77 62 | PI18 = 76 63 | PI19 = 75 64 | PI20 = 60 65 | PI21 = 61 66 | -------------------------------------------------------------------------------- /libraries/itead_SHT1x/examples/ReadSHT1xValues/ReadSHT1xValues.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * ReadSHT1xValues 3 | * 4 | * Read temperature and humidity values from an SHT1x-series (SHT10, 5 | * SHT11, SHT15) sensor. 6 | * 7 | * Copyright 2009 Jonathan Oxer 8 | * www.practicalarduino.com 9 | */ 10 | 11 | #include 12 | 13 | // Specify data and clock connections and instantiate SHT1x object 14 | #define dataPin 68 15 | #define clockPin 67 16 | SHT1x sht1x(dataPin, clockPin); 17 | 18 | void setup() 19 | { 20 | printf("Starting up\n"); 21 | } 22 | 23 | void loop() 24 | { 25 | float temp_c; 26 | float temp_f; 27 | float humidity; 28 | 29 | // Read values from the sensor 30 | temp_c = sht1x.readTemperatureC(); 31 | temp_f = sht1x.readTemperatureF(); 32 | humidity = sht1x.readHumidity(); 33 | 34 | // Print the values to the serial port 35 | printf("Temperature: "); 36 | printf("%.2f",temp_c); 37 | printf("C / "); 38 | printf("%.2f",temp_f); 39 | printf("F. Humidity: "); 40 | printf("%.2f",humidity); 41 | printf("\%\n"); 42 | 43 | delay(2000); 44 | } 45 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexPage.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexPage.cpp 3 | * 4 | * The implementation of class NexPage. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #include "NexPage.h" 17 | 18 | NexPage::NexPage(uint8_t pid, uint8_t cid, const char *name) 19 | :NexTouch(pid, cid, name) 20 | { 21 | } 22 | 23 | bool NexPage::show(void) 24 | { 25 | uint8_t buffer[4] = {0}; 26 | 27 | const char *name = getObjName(); 28 | if (!name) 29 | { 30 | return false; 31 | } 32 | 33 | String cmd = String("page "); 34 | cmd += name; 35 | sendCommand(cmd.c_str()); 36 | return recvRetCommandFinished(); 37 | } 38 | 39 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_object_8cpp__incl.dot: -------------------------------------------------------------------------------- 1 | digraph "NexObject.cpp" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexObject.cpp",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="NexObject.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_object_8h.html",tooltip="The definition of class NexObject. "]; 8 | Node2 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="itead.h",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled"]; 10 | Node2 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 11 | Node4 [label="NexConfig.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_config_8h.html",tooltip="Options for user can be found here. "]; 12 | } 13 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/examples/3-Call/Call.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #define GSM_POWER_PIN 11 6 | SIMCOM900 gsm(GSM_POWER_PIN,Serial2); 7 | SMSGSM sms(gsm); 8 | CallGSM call(gsm); 9 | 10 | boolean started=false; 11 | int pos=0; 12 | char number[20]; 13 | char sms_buffer[200]; 14 | int ret; 15 | int i; 16 | 17 | void setup() 18 | { 19 | //Serial connection. 20 | printf("GSM Shield Call Test\n"); 21 | printf("Start...\n"); 22 | if (gsm.begin(9600)) { 23 | printf("\nstatus=READY\n"); 24 | started=true; 25 | } else printf("\nstatus=IDLE\n"); 26 | 27 | if(!started) { 28 | printf("setup error,Halt now..."); 29 | while(1)delay(10000); 30 | } 31 | 32 | call.Call("10086"); 33 | delay(20000); 34 | call.HangUp(); 35 | delay(2000); 36 | }; 37 | 38 | void loop() 39 | { 40 | 41 | ret = call.CallStatus(); 42 | if( ret == CALL_INCOM_VOICE ){ 43 | printf("Hand Up You !\n"); 44 | call.HangUp(); 45 | delay(5000); 46 | } 47 | delay(2000); 48 | }; 49 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/inetGSM.h: -------------------------------------------------------------------------------- 1 | #ifndef _INETGSM_H_ 2 | #define _INETGSM_H_ 3 | 4 | #define BUFFERSIZE 1 5 | 6 | #include "SIM900.h" 7 | 8 | class InetGSM { 9 | private: 10 | char _buffer[BUFFERSIZE]; 11 | #if 1 // add by wpf 12 | public: 13 | SIMCOM900 *_gsm; 14 | #endif 15 | 16 | public: 17 | InetGSM(SIMCOM900 & gsm_); 18 | int httpGET(const char* server, int port, const char* path, char* result, int resultlength); 19 | int httpPOST(const char* server, int port, const char* path, const char* parameters, char* result, int resultlength); 20 | 21 | // Fast and dirty solution. Should make a "mail" object. And by the moment it does not run. 22 | int openmail(char* server, char* loginbase64, char* passbase64, char* from, char* to, char* subj); 23 | int closemail(); 24 | int attachGPRS(char* domain, char* dom1, char* dom2); 25 | int dettachGPRS(); 26 | int connectTCP(const char* server, int port); 27 | int disconnectTCP(); 28 | int connectTCPServer(int port); 29 | boolean connectedClient(); 30 | 31 | // This runs, yes 32 | //int tweet(const char* token, const char* msg); 33 | 34 | }; 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexHotspot.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexHotspot.h 3 | * 4 | * The definition of class NexHotspot. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * 9 | * @copyright 10 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 11 | * This program is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU General Public License as 13 | * published by the Free Software Foundation; either version 2 of 14 | * the License, or (at your option) any later version. 15 | */ 16 | 17 | #ifndef __NEXHOTSPOT_H__ 18 | #define __NEXHOTSPOT_H__ 19 | 20 | #include "NexTouch.h" 21 | #include "NexHardware.h" 22 | /** 23 | * @addtogroup Component 24 | * @{ 25 | */ 26 | 27 | /** 28 | * NexHotspot component. 29 | */ 30 | class NexHotspot: public NexTouch 31 | { 32 | public: /* methods */ 33 | /** 34 | * @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name); 35 | */ 36 | NexHotspot(uint8_t pid, uint8_t cid, const char *name); 37 | }; 38 | /** 39 | * @} 40 | */ 41 | 42 | 43 | #endif /* #ifndef __NEXHOTSPOT_H__ */ 44 | -------------------------------------------------------------------------------- /libraries/itead_GFX/README.txt: -------------------------------------------------------------------------------- 1 | This is a our graphics core library, for all our displays. We'll be adapting all the 2 | existing libaries to use this core to make updating, support and upgrading easier! 3 | 4 | At this time, only the SSD1306 library uses it - but we'll be adding more! 5 | https://github.com/adafruit/Adafruit_SSD1306 6 | 7 | Adafruit invests time and resources providing this open source code, 8 | please support Adafruit and open-source hardware by purchasing 9 | products from Adafruit! 10 | 11 | Written by Limor Fried/Ladyada for Adafruit Industries. 12 | BSD license, check license.txt for more information 13 | All text above must be included in any redistribution 14 | 15 | To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder Adafruit_GFX. Check that the Adafruit_GFX folder contains Adafruit_GFX.cpp and Adafruit_GFX.h 16 | 17 | Place the Adafruit_GFX library folder your /libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. 18 | 19 | MODIFIED BY ! 20 | Desc: This lib is transplanted to itead sdk by Wu Pengfei. 21 | Date: 2014.3.31 22 | Email: pengfei.wu@itead.cc -------------------------------------------------------------------------------- /libraries/itead_Nextion/Nextion.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file Nextion.h 3 | * 4 | * The header file including all other header files provided by this library. 5 | * 6 | * Every example sketch should include this file. 7 | * 8 | * @author Wu Pengfei (email:) 9 | * @date 2015/8/12 10 | * @copyright 11 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 12 | * This program is free software; you can redistribute it and/or 13 | * modify it under the terms of the GNU General Public License as 14 | * published by the Free Software Foundation; either version 2 of 15 | * the License, or (at your option) any later version. 16 | */ 17 | #ifndef __NEXTION_H__ 18 | #define __NEXTION_H__ 19 | 20 | 21 | #include "NexConfig.h" 22 | #include "NexTouch.h" 23 | #include "NexHardware.h" 24 | #include 25 | #include "NexButton.h" 26 | #include "NexCrop.h" 27 | #include "NexGauge.h" 28 | #include "NexHotspot.h" 29 | #include "NexPage.h" 30 | #include "NexPicture.h" 31 | #include "NexProgressBar.h" 32 | #include "NexSlider.h" 33 | #include "NexText.h" 34 | #include "NexWaveform.h" 35 | #include "NexDualStateButton.h" 36 | #include "NexNumber.h" 37 | #endif /* #ifndef __NEXTION_H__ */ 38 | -------------------------------------------------------------------------------- /include/itead_utility.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file itead_utility.h 3 | * 4 | * Provide utilities used in Segnix. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2014/3/11 8 | * @copyright 9 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | #ifndef __ITEAD_UTILITY_H__ 16 | #define __ITEAD_UTILITY_H__ 17 | 18 | #ifdef __cplusplus 19 | extern "C"{ 20 | #endif 21 | 22 | #define DEV_NONE 65535 23 | 24 | /* 25 | * @name : vertify_dev 26 | * @desc : vertify dev for availability. 27 | * @param : dev - the number of uart. 28 | * @return : 1 if available, 0 if unavailable. 29 | */ 30 | static inline uint32_t vertify_dev(uint32_t dev, uint32_t valid_dev[]) 31 | { 32 | int32_t i; 33 | for(i = 0; valid_dev[i] != DEV_NONE; i++) { 34 | if ( dev == valid_dev[i]) return 1; 35 | } 36 | return 0; 37 | } 38 | 39 | 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompCrop/CompCrop.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * @example CompCrop.ino 3 | * 4 | * @par How to Use 5 | * Show how to use API of class NexCrop. 6 | * 7 | * @author Wu Pengfei (email:) 8 | * @date 2015/7/10 9 | * @copyright 10 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 11 | * This program is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU General Public License as 13 | * published by the Free Software Foundation; either version 2 of 14 | * the License, or (at your option) any later version. 15 | */ 16 | 17 | #include "Nextion.h" 18 | uint32_t number = 0; 19 | NexCrop q0 = NexCrop(0, 1, "q0"); 20 | 21 | NexTouch *nex_listen_list[] = 22 | { 23 | &q0, 24 | NULL 25 | }; 26 | 27 | void q0PopCallback(void *ptr) 28 | { 29 | 30 | dbSerialPrintln("q0PopCallback"); 31 | 32 | q0.getPic(&number); 33 | 34 | number += 1; 35 | number %= 2; 36 | 37 | q0.setPic(number); 38 | } 39 | 40 | 41 | void setup(void) 42 | { 43 | nexInit(); 44 | q0.attachPop(q0PopCallback); 45 | dbSerialPrintln("setup done"); 46 | } 47 | 48 | void loop(void) 49 | { 50 | nexLoop(nex_listen_list); 51 | } 52 | 53 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/LOG.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | LOG.cpp - Library for standard logging convention. 3 | Created by Meir Michanie, June 9, 2010. 4 | Released into the public domain. 5 | Version 0.1 6 | */ 7 | 8 | #include "LOG.h" 9 | 10 | LOG::LOG(int level) 11 | { 12 | setLevel(level); 13 | } 14 | 15 | void LOG::DATA(const char* string) 16 | { 17 | if (_level > 4) { 18 | printf("%s",string); 19 | } 20 | } 21 | 22 | void LOG::DATA(int number) 23 | { 24 | if (_level > 4) { 25 | printf("%d",number); 26 | } 27 | } 28 | 29 | void LOG::DEBUG(const char* string) 30 | { 31 | if (_level > 3) { 32 | printf("\n[DEBUG]: "); 33 | printf("%s\n",string); 34 | } 35 | } 36 | 37 | void LOG::INFO(const char* string) 38 | { 39 | if (_level > 2) { 40 | printf("\n[INFO]: "); 41 | printf("%s\n",string); 42 | } 43 | } 44 | 45 | void LOG::WARNING(const char* string) 46 | { 47 | if (_level > 1) { 48 | printf("\n[WARNING]: "); 49 | printf("%s\n",string); 50 | } 51 | } 52 | 53 | void LOG::CRITICAL(const char* string) 54 | { 55 | if (_level > 0) { 56 | printf("\n[CRITICAL]: "); 57 | printf("%s\n",string); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /include/itead_debug.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file itead_debug.h 3 | * 4 | * Define a debug micro for output debug information. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2014/3/11 8 | * @copyright 9 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | #ifndef __ITEAD_DEBUG_H__ 16 | #define __ITEAD_DEBUG_H__ 17 | 18 | #include 19 | 20 | #ifdef __cplusplus 21 | extern "C"{ 22 | #endif 23 | 24 | 25 | #ifdef DEBUG 26 | #define _DEBUG 1 27 | #else 28 | #define _DEBUG 0 29 | #endif 30 | 31 | #define debug(fmt, args...) \ 32 | do { \ 33 | if (_DEBUG) { \ 34 | printf("\n[DEBUG:%s,%d,%s]-> ",__FILE__,__LINE__,__FUNCTION__);\ 35 | printf(fmt, ##args); \ 36 | } \ 37 | } while (0) 38 | 39 | #ifdef __cplusplus 40 | } 41 | #endif 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexText.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexText.cpp 3 | * 4 | * The implementation of class NexText. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | #include "NexText.h" 16 | 17 | NexText::NexText(uint8_t pid, uint8_t cid, const char *name) 18 | :NexTouch(pid, cid, name) 19 | { 20 | } 21 | 22 | uint16_t NexText::getText(char *buffer, uint16_t len) 23 | { 24 | String cmd; 25 | cmd += "get "; 26 | cmd += getObjName(); 27 | cmd += ".txt"; 28 | sendCommand(cmd.c_str()); 29 | return recvRetString(buffer,len); 30 | } 31 | 32 | bool NexText::setText(const char *buffer) 33 | { 34 | String cmd; 35 | cmd += getObjName(); 36 | cmd += ".txt=\""; 37 | cmd += buffer; 38 | cmd += "\""; 39 | sendCommand(cmd.c_str()); 40 | return recvRetCommandFinished(); 41 | } 42 | 43 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexButton.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexButton.cpp 3 | * 4 | * The implementation of class NexButton. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #include "NexButton.h" 17 | 18 | NexButton::NexButton(uint8_t pid, uint8_t cid, const char *name) 19 | :NexTouch(pid, cid, name) 20 | { 21 | } 22 | 23 | uint16_t NexButton::getText(char *buffer, uint16_t len) 24 | { 25 | String cmd; 26 | cmd += "get "; 27 | cmd += getObjName(); 28 | cmd += ".txt"; 29 | sendCommand(cmd.c_str()); 30 | return recvRetString(buffer,len); 31 | } 32 | 33 | bool NexButton::setText(const char *buffer) 34 | { 35 | String cmd; 36 | cmd += getObjName(); 37 | cmd += ".txt=\""; 38 | cmd += buffer; 39 | cmd += "\""; 40 | sendCommand(cmd.c_str()); 41 | return recvRetCommandFinished(); 42 | } 43 | 44 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/examples/0-AT/AT.ino: -------------------------------------------------------------------------------- 1 | #include "SIM900.h" 2 | 3 | SIMCOM900 gsm(11,Serial2); 4 | 5 | int numdata; 6 | char inSerial[4096]; 7 | int i=0; 8 | int cnt=0; 9 | 10 | 11 | void receive_response(uint16_t wait,uint16_t no_attempt, uint16_t interval) 12 | { 13 | uint16_t cnt=0; 14 | 15 | delay(wait); 16 | printf("\n["); 17 | for(cnt=0;cnt0) { 20 | printf("%c",gsm.read()); 21 | } 22 | } 23 | printf("]\n"); 24 | } 25 | 26 | void setup() 27 | { 28 | //Serial connection. 29 | printf("GSM Shield AT Test\n"); 30 | //Start configuration of shield with baudrate. 31 | printf("Start...\n"); 32 | if (gsm.begin(9600)) 33 | printf("\nstatus=READY\n"); 34 | else printf("\nstatus=IDLE\n"); 35 | 36 | }; 37 | 38 | 39 | void loop() 40 | { 41 | 42 | printf("Send Cmd: AT\n"); 43 | gsm.SimpleWriteln("AT"); 44 | receive_response(100,2,100); 45 | 46 | printf("Send Cmd: ATE0\n"); 47 | gsm.SimpleWriteln("ATE0"); 48 | receive_response(100,2,100); 49 | 50 | printf("Send Cmd: ATE1\n"); 51 | gsm.SimpleWriteln("ATE1"); 52 | receive_response(100,2,100); 53 | 54 | delay(1000); 55 | }; 56 | 57 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexGauge.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexGauge.cpp 3 | * 4 | * The implementation of class NexGauge. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #include "NexGauge.h" 17 | 18 | NexGauge::NexGauge(uint8_t pid, uint8_t cid, const char *name) 19 | :NexObject(pid, cid, name) 20 | { 21 | } 22 | 23 | bool NexGauge::getValue(uint32_t *number) 24 | { 25 | String cmd = String("get "); 26 | cmd += getObjName(); 27 | cmd += ".val"; 28 | sendCommand(cmd.c_str()); 29 | return recvRetNumber(number); 30 | } 31 | 32 | bool NexGauge::setValue(uint32_t number) 33 | { 34 | char buf[10] = {0}; 35 | String cmd; 36 | 37 | sprintf(buf,"%d",number); 38 | //utoa(number, buf, 10); 39 | cmd += getObjName(); 40 | cmd += ".val="; 41 | cmd += buf; 42 | 43 | sendCommand(cmd.c_str()); 44 | return recvRetCommandFinished(); 45 | } 46 | 47 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexSlider.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexSlider.cpp 3 | * 4 | * The implementation of class NexSlider. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | #include "NexSlider.h" 16 | 17 | NexSlider::NexSlider(uint8_t pid, uint8_t cid, const char *name) 18 | :NexTouch(pid, cid, name) 19 | { 20 | } 21 | 22 | bool NexSlider::getValue(uint32_t *number) 23 | { 24 | String cmd = String("get "); 25 | cmd += getObjName(); 26 | cmd += ".val"; 27 | sendCommand(cmd.c_str()); 28 | return recvRetNumber(number); 29 | } 30 | 31 | bool NexSlider::setValue(uint32_t number) 32 | { 33 | char buf[10] = {0}; 34 | String cmd; 35 | 36 | sprintf(buf,"%d",number); 37 | //utoa(number, buf, 10); 38 | cmd += getObjName(); 39 | cmd += ".val="; 40 | cmd += buf; 41 | 42 | sendCommand(cmd.c_str()); 43 | return recvRetCommandFinished(); 44 | } 45 | 46 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexCrop.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexCrop.cpp 3 | * 4 | * The implementation of class NexCrop. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #include "NexCrop.h" 17 | #include 18 | 19 | 20 | NexCrop::NexCrop(uint8_t pid, uint8_t cid, const char *name) 21 | :NexTouch(pid, cid, name) 22 | { 23 | } 24 | 25 | bool NexCrop::getPic(uint32_t *number) 26 | { 27 | String cmd = String("get "); 28 | cmd += getObjName(); 29 | cmd += ".picc"; 30 | sendCommand(cmd.c_str()); 31 | return recvRetNumber(number); 32 | } 33 | 34 | bool NexCrop::setPic(uint32_t number) 35 | { 36 | char buf[10] = {0}; 37 | String cmd; 38 | sprintf(buf,"%d",number); 39 | //utoa(number, buf, 10); 40 | cmd += getObjName(); 41 | cmd += ".picc="; 42 | cmd += buf; 43 | 44 | sendCommand(cmd.c_str()); 45 | return recvRetCommandFinished(); 46 | } 47 | 48 | -------------------------------------------------------------------------------- /include/itead_delay.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file itead_delay.h 3 | * 4 | * Provide the implementation of Arduino API on delay. 5 | * 6 | * Actually,it is simple so that it may not meet your 7 | * need about fatal-time application. 8 | * 9 | * @author Wu Pengfei (email:) 10 | * @date 2014/3/11 11 | * @copyright 12 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 13 | * This program is free software; you can redistribute it and/or 14 | * modify it under the terms of the GNU General Public License as 15 | * published by the Free Software Foundation; either version 2 of 16 | * the License, or (at your option) any later version. 17 | */ 18 | #ifndef __ITEAD_DELAY_H__ 19 | #define __ITEAD_DELAY_H__ 20 | 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | 29 | #ifdef __cplusplus 30 | extern "C"{ 31 | #endif 32 | 33 | /** 34 | * @addtogroup delay 35 | * @{ 36 | */ 37 | 38 | uint32_t micros(void); 39 | uint32_t millis(void); 40 | void delay (uint32_t howLong); 41 | void delayMicroseconds (uint32_t howLong); 42 | 43 | /** @} */ 44 | 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /SDK_Python/Makefile: -------------------------------------------------------------------------------- 1 | so_dir := build/lib.linux* 2 | so_install_dir := /usr/lib/python2.7/dist-packages 3 | so_file := iteadcfunction.so 4 | so_file += iteadserial.so 5 | so_file += iteadspi.so 6 | so_file += iteadwire.so 7 | 8 | py_dir := . 9 | py_install_dir := $(so_install_dir) 10 | py_file := itead_config.py 11 | py_file += iteadsdk.py 12 | py_file += BOARD_ITEADUINO_PLUS_GPIO.py 13 | py_file += BOARD_ITEAD_CORE_EVB_GPIO.py 14 | py_file += BOARD_RASPBERRY_PI_RV2_GPIO.py 15 | py_file += BOARD_RASPBERRY_PI_MODEL_BPLUS_GPIO.py 16 | py_file += BOARD_BEAGLE_BONE_BLACK_GPIO.py 17 | 18 | 19 | .PHONY: install 20 | install: 21 | cd core && \ 22 | ./setup.py build && \ 23 | cp $(addprefix $(so_dir)/,$(so_file)) $(so_install_dir) && \ 24 | chmod 755 $(addprefix $(so_install_dir)/,$(so_file)) && \ 25 | cd - 26 | cp $(addprefix $(py_dir)/,$(py_file)) $(py_install_dir) 27 | chmod 755 $(addprefix $(py_install_dir)/,$(py_file)) 28 | @echo "install done!" 29 | 30 | 31 | 32 | .PHONY: uninstall 33 | uninstall: 34 | rm -f $(addprefix $(so_install_dir)/,$(so_file)) 35 | rm -f $(addprefix $(py_install_dir)/,$(py_file)) 36 | rm -f $(addprefix $(py_install_dir)/,$(subst .py,.pyc,$(py_file))) 37 | @echo "uninstall done!" 38 | 39 | 40 | 41 | .PHONY: clean 42 | clean: 43 | rm -rf core/build 44 | @echo "clean done!" 45 | 46 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompSlider/CompSlider.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * @example CompSlider.ino 3 | * 4 | * @par How to Use 5 | * Show how to use API of class NexSlider. 6 | * 7 | * @author Wu Pengfei (email:) 8 | * @date 2015/8/11 9 | * @copyright 10 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 11 | * This program is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU General Public License as 13 | * published by the Free Software Foundation; either version 2 of 14 | * the License, or (at your option) any later version. 15 | */ 16 | 17 | #include "Nextion.h" 18 | 19 | 20 | NexText t0 = NexText(0, 2, "t0"); 21 | NexSlider h0 = NexSlider(0, 1, "h0"); 22 | 23 | NexTouch *nex_listen_list[] = 24 | { 25 | &h0, 26 | NULL 27 | }; 28 | 29 | void h0PopCallback(void *ptr) 30 | { 31 | uint32_t number = 0; 32 | char temp[10] = {0}; 33 | 34 | dbSerialPrintln("h0PopCallback"); 35 | 36 | h0.getValue(&number); 37 | //utoa(number, temp, 10); 38 | sprintf(temp,"%d",number); 39 | t0.setText(temp); 40 | } 41 | 42 | 43 | void setup(void) 44 | { 45 | nexInit(); 46 | h0.attachPop(h0PopCallback); 47 | dbSerialPrintln("setup done"); 48 | } 49 | 50 | void loop(void) 51 | { 52 | nexLoop(nex_listen_list); 53 | } 54 | 55 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexNumber.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexNumber.cpp 3 | * 4 | * The implementation of class NexNumber. 5 | * 6 | * @author huang xianming (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | #include "NexNumber.h" 16 | 17 | NexNumber::NexNumber(uint8_t pid, uint8_t cid, const char *name) 18 | :NexTouch(pid, cid, name) 19 | { 20 | } 21 | 22 | bool NexNumber::getValue(uint32_t *number) 23 | { 24 | String cmd = String("get "); 25 | cmd += getObjName(); 26 | cmd += ".val"; 27 | sendCommand(cmd.c_str()); 28 | return recvRetNumber(number); 29 | } 30 | 31 | bool NexNumber::setValue(uint32_t number) 32 | { 33 | char buf[10] = {0}; 34 | String cmd; 35 | 36 | //utoa(number, buf, 10); 37 | sprintf(buf,"%d",number); 38 | cmd += getObjName(); 39 | cmd += ".val="; 40 | cmd += buf; 41 | 42 | sendCommand(cmd.c_str()); 43 | return recvRetCommandFinished(); 44 | } 45 | 46 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexPicture.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexPicture.cpp 3 | * 4 | * The implementation of class NexPicture. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #include "NexPicture.h" 17 | 18 | NexPicture::NexPicture(uint8_t pid, uint8_t cid, const char *name) 19 | :NexTouch(pid, cid, name) 20 | { 21 | } 22 | 23 | bool NexPicture::getPic(uint32_t *number) 24 | { 25 | String cmd = String("get "); 26 | cmd += getObjName(); 27 | cmd += ".pic"; 28 | sendCommand(cmd.c_str()); 29 | return recvRetNumber(number); 30 | } 31 | 32 | bool NexPicture::setPic(uint32_t number) 33 | { 34 | char buf[10] = {0}; 35 | String cmd; 36 | 37 | sprintf(buf,"%d",number); 38 | //utoa(number, buf, 10); 39 | cmd += getObjName(); 40 | cmd += ".pic="; 41 | cmd += buf; 42 | 43 | sendCommand(cmd.c_str()); 44 | return recvRetCommandFinished(); 45 | } 46 | 47 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doxygen.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file doxygen.h 3 | * 4 | * Define modules in API doc. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/12 8 | * @copyright 9 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #ifndef __IOTGO_DOXYGEN_H__ 17 | #define __IOTGO_DOXYGEN_H__ 18 | 19 | /** 20 | * @defgroup GetStarted Get Started 21 | * @brief Show examples and create your own sketch based on Nextion library. 22 | */ 23 | 24 | /** 25 | * @defgroup Configuration Configuration 26 | * @brief Configure your debug messages and hardware resource. 27 | */ 28 | 29 | /** 30 | * @defgroup Component Nextion Component 31 | * @brief All components supported. 32 | */ 33 | 34 | /** 35 | * @defgroup CoreAPI Core API 36 | * @brief Some essential things. 37 | */ 38 | /** 39 | * @ingroup CoreAPI 40 | * @defgroup TouchEvent Touch Event 41 | * @brief How to attach(or detach) callback function called when touch event occurs. 42 | */ 43 | 44 | 45 | #endif /* #ifndef __IOTGO_DOXYGEN_H__ */ 46 | -------------------------------------------------------------------------------- /tools/test/test_wire.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python 2 | 3 | from iteadsdk import * 4 | 5 | EEPROM_ADDR = 0x50 6 | I2C = Wire 7 | 8 | def test_wire(val): 9 | I2C.begin() 10 | 11 | for i in range(16): 12 | I2C.beginTransmission(EEPROM_ADDR) 13 | I2C.write(i * 16) 14 | for k in range(16): 15 | I2C.write(val) 16 | I2C.endTransmission() 17 | delay(10) 18 | 19 | I2C.beginTransmission(EEPROM_ADDR) 20 | I2C.write(0) 21 | I2C.endTransmission() 22 | delay(10) 23 | 24 | I2C.requestFrom(EEPROM_ADDR,256) 25 | count = I2C.available() 26 | print "Available =%d" % (count) 27 | 28 | print "Read:" 29 | for i in range(count): 30 | print hex(I2C.read()), 31 | if (i+1)%16 == 0: 32 | print "" 33 | print "\nRead done" 34 | 35 | count = I2C.available() 36 | print "Available =%d" % (count) 37 | 38 | I2C.end() 39 | 40 | 41 | ############################################################################### 42 | # main function 43 | ############################################################################### 44 | def main(): 45 | print 'BOARD_TYPE =', BOARD_TYPE 46 | for i in range(5): 47 | test_wire(i) 48 | 49 | print "test wire exit normally!" 50 | 51 | if __name__ == '__main__': main() 52 | 53 | 54 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexProgressBar.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexProgressBar.cpp 3 | * 4 | * The implementation of class NexProgressBar. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #include "NexProgressBar.h" 17 | 18 | NexProgressBar::NexProgressBar(uint8_t pid, uint8_t cid, const char *name) 19 | :NexObject(pid, cid, name) 20 | { 21 | } 22 | 23 | bool NexProgressBar::getValue(uint32_t *number) 24 | { 25 | String cmd = String("get "); 26 | cmd += getObjName(); 27 | cmd += ".val"; 28 | sendCommand(cmd.c_str()); 29 | return recvRetNumber(number); 30 | } 31 | 32 | bool NexProgressBar::setValue(uint32_t number) 33 | { 34 | char buf[10] = {0}; 35 | String cmd; 36 | 37 | sprintf(buf,"%d",number); 38 | //utoa(number, buf, 10); 39 | cmd += getObjName(); 40 | cmd += ".val="; 41 | cmd += buf; 42 | 43 | sendCommand(cmd.c_str()); 44 | return recvRetCommandFinished(); 45 | } 46 | 47 | -------------------------------------------------------------------------------- /examples/Basics/DigitalReadSerial/DigitalReadSerial.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * @example DigitalReadSerial.ino 3 | * 4 | * @copyright 5 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License as 8 | * published by the Free Software Foundation; either version 2 of 9 | * the License, or (at your option) any later version. 10 | */ 11 | 12 | /* 13 | DigitalReadSerial 14 | Reads a digital input on pin 9, prints the result to the serial monitor 15 | 16 | This example code is in the public domain. 17 | */ 18 | 19 | // We assume that digital pin 9 has a pushbutton attached to it. Give it a name: 20 | int pushButton = 9; 21 | 22 | // test on BeagleBone Black 23 | pushButton = GPIO1_16; 24 | 25 | // the setup routine runs once when you press reset: 26 | void setup() { 27 | // initialize serial communication at 9600 bits per second: 28 | Serial.begin(9600); 29 | // make the pushbutton's pin an input: 30 | pinMode(pushButton, INPUT); 31 | } 32 | 33 | // the loop routine runs over and over again forever: 34 | void loop() { 35 | // read the input pin: 36 | int buttonState = digitalRead(pushButton); 37 | // print out the state of the button: 38 | Serial.println(buttonState); 39 | delay(100); // delay in between reads for stability 40 | } 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /include/itead_doxygen.h: -------------------------------------------------------------------------------- 1 | #ifndef __ITEAD_DOXYGEN_H__ 2 | #define __ITEAD_DOXYGEN_H__ 3 | 4 | 5 | 6 | /** 7 | * @defgroup delay Time 8 | * Details about micros, millis, delay and delayMicroseconds. 9 | */ 10 | 11 | /** 12 | * @defgroup gpio GPIO 13 | * Details about pinMode, digitalWrite, digitalRead, analogWrite, digitalRead8, and digitalWrite8 etc. 14 | */ 15 | 16 | /** 17 | * @defgroup interrupt Interrupt 18 | * Details about attachInterrupt, detachInterrupt, interrupt, and noInterrupt etc. 19 | * 20 | * @warning 21 | * You need to load itead_gpio_int.ko for using GPIO interrupt functions. 22 | * 23 | */ 24 | 25 | /** 26 | * @defgroup serial Serial Port 27 | * How to use objects of Serial (another name is UART) 28 | */ 29 | 30 | /** 31 | * @defgroup i2c I2C Bus 32 | * How to use objects of I2C (also WIRE) 33 | */ 34 | 35 | /** 36 | * @defgroup spi SPI Bus 37 | * How to use objects of SPI 38 | */ 39 | 40 | /** 41 | * @defgroup global Global Stuff 42 | * Global Macro, Datatype, Variable and so forth. 43 | */ 44 | 45 | /** 46 | * @ingroup global 47 | * @defgroup global_macro Global Macro 48 | * Global Macros user can use directly. 49 | */ 50 | 51 | /** 52 | * @ingroup global 53 | * @defgroup global_datatype Global Datatype 54 | * Global datatypes user can use directly. 55 | */ 56 | 57 | #endif /* #ifdef __ITEAD_DOXYGEN_H__ */ 58 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexDualStateButton.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexDualStateButton.cpp 3 | * 4 | * The implementation of class NexDSButton. 5 | * 6 | * @author huang xianming (email:) 7 | * @date 2015/11/11 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #include "NexDualStateButton.h" 17 | 18 | NexDSButton::NexDSButton(uint8_t pid, uint8_t cid, const char *name) 19 | :NexTouch(pid, cid, name) 20 | { 21 | } 22 | 23 | bool NexDSButton::getValue(uint32_t *number) 24 | { 25 | String cmd = String("get "); 26 | cmd += getObjName(); 27 | cmd += ".val"; 28 | sendCommand(cmd.c_str()); 29 | return recvRetNumber(number); 30 | } 31 | 32 | bool NexDSButton::setValue(uint32_t number) 33 | { 34 | char buf[10] = {0}; 35 | String cmd; 36 | 37 | //utoa(number, buf, 10); 38 | sprintf(buf,"%d",number); 39 | cmd += getObjName(); 40 | cmd += ".val="; 41 | cmd += buf; 42 | 43 | sendCommand(cmd.c_str()); 44 | return recvRetCommandFinished(); 45 | } 46 | 47 | 48 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompPicture/CompPicture.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * @example CompPicture.ino 3 | * 4 | * @par How to Use 5 | * Show how to use API of class NexPicture. 6 | * 7 | * @author Wu Pengfei (email:) 8 | * @date 2015/7/10 9 | * @copyright 10 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 11 | * This program is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU General Public License as 13 | * published by the Free Software Foundation; either version 2 of 14 | * the License, or (at your option) any later version. 15 | */ 16 | 17 | #include "Nextion.h" 18 | 19 | NexPicture p0 = NexPicture(0, 1, "p0"); 20 | 21 | NexTouch *nex_listen_list[] = 22 | { 23 | &p0, 24 | NULL 25 | }; 26 | 27 | void p0PopCallback(void *ptr) 28 | { 29 | uint32_t number = 1; 30 | dbSerialPrintln("p0PopCallback"); 31 | 32 | p0.getPic(&number); 33 | 34 | if (number == 1) 35 | { 36 | number = 2; 37 | } 38 | else 39 | { 40 | number = 1; 41 | } 42 | 43 | p0.setPic(number); 44 | } 45 | 46 | 47 | void setup(void) 48 | { 49 | nexInit(); 50 | p0.attachPop(p0PopCallback); 51 | dbSerialPrintln("setup done"); 52 | } 53 | 54 | void loop(void) 55 | { 56 | nexLoop(nex_listen_list); 57 | } 58 | 59 | -------------------------------------------------------------------------------- /libraries/itead_PN532_SPI/examples/readMifareTargetID/readMifareTargetID.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /*Chip select pin can be connected to D10 or D9 which is hareware optional*/ 4 | /*if you the version of NFC Shield from SeeedStudio is v2.0.*/ 5 | #define PN532_CS 109 6 | PN532 nfc(PN532_CS,SPI); 7 | #define NFC_DEMO_DEBUG 1 8 | 9 | void setup(void) { 10 | #ifdef NFC_DEMO_DEBUG 11 | printf("Hello!\n"); 12 | #endif 13 | nfc.begin(); 14 | 15 | uint32_t versiondata = nfc.getFirmwareVersion(); 16 | if (! versiondata) { 17 | #ifdef NFC_DEMO_DEBUG 18 | printf("Didn't find PN53x board"); 19 | #endif 20 | while (1); // halt 21 | } 22 | #ifdef NFC_DEMO_DEBUG 23 | // Got ok data, print it out! 24 | printf("Found chip PN5"); 25 | printf("%X\n",(versiondata>>24) & 0xFF); 26 | printf("Firmware ver. "); 27 | printf("%X",(versiondata>>16) & 0xFF); 28 | printf("."); 29 | printf("%X\n",(versiondata>>8) & 0xFF); 30 | printf("Supports "); 31 | printf("%X\n",versiondata & 0xFF); 32 | #endif 33 | // configure board to read RFID tags and cards 34 | nfc.SAMConfig(); 35 | } 36 | 37 | 38 | void loop(void) { 39 | uint32_t id; 40 | // look for MiFare type cards 41 | id = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A); 42 | if (id != 0) { 43 | #ifdef NFC_DEMO_DEBUG 44 | printf("\nRead card #"); 45 | printf("%u\n",id); 46 | #endif 47 | } 48 | 49 | } 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /libraries/Makefile: -------------------------------------------------------------------------------- 1 | 2 | OBJS := 3 | 4 | ifeq ($(INSTALL_LIBRARIES_itead_GSM-GPRS-GPS),y) 5 | OBJS += itead_GSM-GPRS-GPS.o 6 | endif 7 | 8 | ifeq ($(INSTALL_LIBRARIES_itead_Nextion),y) 9 | OBJS += itead_Nextion.o 10 | endif 11 | 12 | ifeq ($(INSTALL_LIBRARIES_itead_LiquidCrystal),y) 13 | OBJS += itead_LiquidCrystal.o 14 | endif 15 | 16 | ifeq ($(INSTALL_LIBRARIES_itead_SSD1306),y) 17 | OBJS += itead_SSD1306.o 18 | endif 19 | 20 | ifeq ($(INSTALL_LIBRARIES_itead_GFX),y) 21 | OBJS += itead_GFX.o 22 | endif 23 | 24 | ifeq ($(INSTALL_LIBRARIES_itead_TinyGPS),y) 25 | OBJS += itead_TinyGPS.o 26 | endif 27 | 28 | ifeq ($(INSTALL_LIBRARIES_itead_PN532_SPI),y) 29 | OBJS += itead_PN532_SPI.o 30 | endif 31 | 32 | ifeq ($(INSTALL_LIBRARIES_itead_nRF24L01-lite),y) 33 | OBJS += itead_nRF24L01-lite.o 34 | endif 35 | 36 | ifeq ($(INSTALL_LIBRARIES_itead_NRF24L01P),y) 37 | OBJS += itead_NRF24L01P.o 38 | endif 39 | 40 | ifeq ($(INSTALL_LIBRARIES_itead_SHT1x),y) 41 | OBJS += itead_SHT1x.o 42 | endif 43 | 44 | ifeq ($(INSTALL_LIBRARIES_itead_IoTgo),y) 45 | OBJS += itead_IoTgo.o 46 | endif 47 | 48 | .PHONY: all 49 | all: libiteadmodule.so 50 | 51 | libiteadmodule.so: $(OBJS) 52 | $(SDK_CPP_COMPILE) $(SDK_LIB_OPTIMIZE_OPTION) -fpic -shared -o $@ $^ 53 | 54 | .PHONY: $(OBJS) 55 | $(OBJS): 56 | $(MAKE) -C $(subst .o,,$@) $@ 57 | mv $(subst .o,,$@)/$@ ./ 58 | 59 | .PHONY: clean 60 | clean: 61 | rm -rf $(OBJS) libiteadmodule.so 62 | -------------------------------------------------------------------------------- /libraries/itead_IoTgo/IoTgo_debug.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file IoTgo_debug.h 3 | * 4 | * Define/Undefine macro DEBUG for debuging project. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2014/11/17 8 | * @copyright 9 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #ifndef __IOTGO_DEBUG_H__ 17 | #define __IOTGO_DEBUG_H__ 18 | 19 | #include 20 | 21 | //#define DEBUG 22 | 23 | #ifdef DEBUG 24 | #define IoTgo_debug(fmt, args...) \ 25 | do { \ 26 | printf("\n[IoTgo DEBUG:%s,%d,%s]-> ",__FILE__,__LINE__,__FUNCTION__);\ 27 | printf(fmt, ##args);\ 28 | printf("\n");\ 29 | } while(0) 30 | #else 31 | #define IoTgo_debug(fmt, args...) do{}while(0) 32 | #endif 33 | 34 | #define IoTgo_perror(fmt, args...) \ 35 | do { \ 36 | printf("\n[IoTgo ERROR:%s,%d,%s]-> ",__FILE__,__LINE__,__FUNCTION__);\ 37 | printf(fmt, ##args);\ 38 | printf("\n");\ 39 | } while(0) 40 | 41 | #endif /* #ifndef __IOTGO_DEBUG_H__ */ 42 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexPage.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexPage.h 3 | * 4 | * The definition of class NexPage. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * 9 | * @copyright 10 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 11 | * This program is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU General Public License as 13 | * published by the Free Software Foundation; either version 2 of 14 | * the License, or (at your option) any later version. 15 | */ 16 | 17 | #ifndef __NEXPAGE_H__ 18 | #define __NEXPAGE_H__ 19 | 20 | #include "NexTouch.h" 21 | #include "NexHardware.h" 22 | /** 23 | * @addtogroup Component 24 | * @{ 25 | */ 26 | 27 | /** 28 | * A special component , which can contain other components such as NexButton, 29 | * NexText and NexWaveform, etc. 30 | */ 31 | class NexPage: public NexTouch 32 | { 33 | public: /* methods */ 34 | /** 35 | * @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name); 36 | */ 37 | NexPage(uint8_t pid, uint8_t cid, const char *name); 38 | 39 | /** 40 | * Show itself. 41 | * 42 | * @return true if success, false for faileure. 43 | */ 44 | bool show(void); 45 | }; 46 | /** 47 | * @} 48 | */ 49 | 50 | #endif /* #ifndef __NEXPAGE_H__ */ 51 | -------------------------------------------------------------------------------- /config.mk: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Select libraries needed to be installed 3 | # 4 | # If INSTALL_LIBRARIES_* is y, the library will be compiled and installed to 5 | # your system. 6 | # If INSTALL_LIBRARIES_* is not "y", the library will be ignored. 7 | # 8 | # NOTE: 9 | # Blank spaces behind letter "y" in lines which begin with INSTALL_LIBRARIES_* 10 | # will cause some exceptions unexpectedly. In other words, Letter "y" MUST be 11 | # the last one in those lines. 12 | ############################################################################### 13 | 14 | # 15 | # User can replace "y" with "n" to ignore the corresponding library. 16 | # Actually, commenting the line which begins with INSTALL_LIBRARIES_* by 17 | # inserting "#" at the head will also get the same result. 18 | # NOTE: 19 | # User MUST select one INSTALL_LIBRARIES_* as "y" at least. 20 | # 21 | INSTALL_LIBRARIES_itead_GSM-GPRS-GPS := y 22 | INSTALL_LIBRARIES_itead_Nextion := y 23 | INSTALL_LIBRARIES_itead_LiquidCrystal := y 24 | INSTALL_LIBRARIES_itead_SSD1306 := y 25 | INSTALL_LIBRARIES_itead_GFX := y 26 | INSTALL_LIBRARIES_itead_TinyGPS := y 27 | INSTALL_LIBRARIES_itead_PN532_SPI := y 28 | INSTALL_LIBRARIES_itead_nRF24L01-lite := y 29 | INSTALL_LIBRARIES_itead_NRF24L01P := y 30 | INSTALL_LIBRARIES_itead_SHT1x := y 31 | INSTALL_LIBRARIES_itead_IoTgo := y -------------------------------------------------------------------------------- /tools/config.mk: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Select libraries needed to be installed 3 | # 4 | # If INSTALL_LIBRARIES_* is y, the library will be compiled and installed to 5 | # your system. 6 | # If INSTALL_LIBRARIES_* is not "y", the library will be ignored. 7 | # 8 | # NOTE: 9 | # Blank spaces behind letter "y" in lines which begin with INSTALL_LIBRARIES_* 10 | # will cause some exceptions unexpectedly. In other words, Letter "y" MUST be 11 | # the last one in those lines. 12 | ############################################################################### 13 | 14 | # 15 | # User can replace "y" with "n" to ignore the corresponding library. 16 | # Actually, commenting the line which begins with INSTALL_LIBRARIES_* by 17 | # inserting "#" at the head will also get the same result. 18 | # NOTE: 19 | # User MUST select one INSTALL_LIBRARIES_* as "y" at least. 20 | # 21 | INSTALL_LIBRARIES_itead_GSM-GPRS-GPS := y 22 | INSTALL_LIBRARIES_itead_Nextion := y 23 | INSTALL_LIBRARIES_itead_LiquidCrystal := y 24 | INSTALL_LIBRARIES_itead_SSD1306 := y 25 | INSTALL_LIBRARIES_itead_GFX := y 26 | INSTALL_LIBRARIES_itead_TinyGPS := y 27 | INSTALL_LIBRARIES_itead_PN532_SPI := y 28 | INSTALL_LIBRARIES_itead_nRF24L01-lite := y 29 | INSTALL_LIBRARIES_itead_NRF24L01P := y 30 | INSTALL_LIBRARIES_itead_SHT1x := y 31 | INSTALL_LIBRARIES_itead_IoTgo := y -------------------------------------------------------------------------------- /doc/Segnix-API-html/tabs.css: -------------------------------------------------------------------------------- 1 | .tabs, .tabs2, .tabs3 { 2 | background-image: url('tab_b.png'); 3 | width: 100%; 4 | z-index: 101; 5 | font-size: 13px; 6 | font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; 7 | } 8 | 9 | .tabs2 { 10 | font-size: 10px; 11 | } 12 | .tabs3 { 13 | font-size: 9px; 14 | } 15 | 16 | .tablist { 17 | margin: 0; 18 | padding: 0; 19 | display: table; 20 | } 21 | 22 | .tablist li { 23 | float: left; 24 | display: table-cell; 25 | background-image: url('tab_b.png'); 26 | line-height: 36px; 27 | list-style: none; 28 | } 29 | 30 | .tablist a { 31 | display: block; 32 | padding: 0 20px; 33 | font-weight: bold; 34 | background-image:url('tab_s.png'); 35 | background-repeat:no-repeat; 36 | background-position:right; 37 | color: #184C80; 38 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); 39 | text-decoration: none; 40 | outline: none; 41 | } 42 | 43 | .tabs3 .tablist a { 44 | padding: 0 10px; 45 | } 46 | 47 | .tablist a:hover { 48 | background-image: url('tab_h.png'); 49 | background-repeat:repeat-x; 50 | color: #fff; 51 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 52 | text-decoration: none; 53 | } 54 | 55 | .tablist li.current a { 56 | background-image: url('tab_a.png'); 57 | background-repeat:repeat-x; 58 | color: #fff; 59 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 60 | } 61 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/dir_d28a4824dc47e487b107a5db32ef43c4.js: -------------------------------------------------------------------------------- 1 | var dir_d28a4824dc47e487b107a5db32ef43c4 = 2 | [ 3 | [ "CompButton", "dir_9bbf8342b0f9a157b7af08fe1412fc17.html", "dir_9bbf8342b0f9a157b7af08fe1412fc17" ], 4 | [ "CompCrop", "dir_8dcbebf38b229bfa7bb34d68bf824093.html", "dir_8dcbebf38b229bfa7bb34d68bf824093" ], 5 | [ "CompDualStateButton", "dir_3a828b7214103d705cc83e20f29bdad9.html", "dir_3a828b7214103d705cc83e20f29bdad9" ], 6 | [ "CompGauge", "dir_a48692e2802a027399b146b680655303.html", "dir_a48692e2802a027399b146b680655303" ], 7 | [ "CompHotspot", "dir_f3d39c87bc262720c50d5e3885667b8a.html", "dir_f3d39c87bc262720c50d5e3885667b8a" ], 8 | [ "CompNumber", "dir_2af451c22587252d0014dbc596e2e19a.html", "dir_2af451c22587252d0014dbc596e2e19a" ], 9 | [ "CompPage", "dir_f76977d9ffe8ddf3ad01f3d689aa5df4.html", "dir_f76977d9ffe8ddf3ad01f3d689aa5df4" ], 10 | [ "CompPicture", "dir_ce36ac18ad3deaf5eae0bd2e09775a7d.html", "dir_ce36ac18ad3deaf5eae0bd2e09775a7d" ], 11 | [ "CompProgressBar", "dir_7962cac16a99e8bbaaea18abede03fcb.html", "dir_7962cac16a99e8bbaaea18abede03fcb" ], 12 | [ "CompSlider", "dir_472f54fb1d9b74971d8e15d62f212bd3.html", "dir_472f54fb1d9b74971d8e15d62f212bd3" ], 13 | [ "CompText", "dir_c918e8bf3fc71f849978cdb0d900e61c.html", "dir_c918e8bf3fc71f849978cdb0d900e61c" ], 14 | [ "CompWaveform", "dir_4b43661efaa18af91f213d2681ebd37e.html", "dir_4b43661efaa18af91f213d2681ebd37e" ] 15 | ]; -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexWaveform.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexWaveform.h 3 | * 4 | * The definition of class NexWaveform. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * 9 | * @copyright 10 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 11 | * This program is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU General Public License as 13 | * published by the Free Software Foundation; either version 2 of 14 | * the License, or (at your option) any later version. 15 | */ 16 | #ifndef __NEXWAVEFORM_H__ 17 | #define __NEXWAVEFORM_H__ 18 | 19 | #include "NexTouch.h" 20 | #include "NexHardware.h" 21 | /** 22 | * @addtogroup Component 23 | * @{ 24 | */ 25 | 26 | /** 27 | * NexWaveform component. 28 | */ 29 | class NexWaveform: public NexObject 30 | { 31 | public: /* methods */ 32 | /** 33 | * @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name); 34 | */ 35 | NexWaveform(uint8_t pid, uint8_t cid, const char *name); 36 | 37 | /** 38 | * Add value to show. 39 | * 40 | * @param ch - channel of waveform(0-3). 41 | * @param number - the value of waveform. 42 | * 43 | * @retval true - success. 44 | * @retval false - failed. 45 | */ 46 | bool addValue(uint8_t ch, uint8_t number); 47 | }; 48 | 49 | /** 50 | * @} 51 | */ 52 | 53 | #endif /* #ifndef __NEXWAVEFORM_H__ */ 54 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/tabs.css: -------------------------------------------------------------------------------- 1 | .tabs, .tabs2, .tabs3 { 2 | background-image: url('tab_b.png'); 3 | width: 100%; 4 | z-index: 101; 5 | font-size: 13px; 6 | font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; 7 | } 8 | 9 | .tabs2 { 10 | font-size: 10px; 11 | } 12 | .tabs3 { 13 | font-size: 9px; 14 | } 15 | 16 | .tablist { 17 | margin: 0; 18 | padding: 0; 19 | display: table; 20 | } 21 | 22 | .tablist li { 23 | float: left; 24 | display: table-cell; 25 | background-image: url('tab_b.png'); 26 | line-height: 36px; 27 | list-style: none; 28 | } 29 | 30 | .tablist a { 31 | display: block; 32 | padding: 0 20px; 33 | font-weight: bold; 34 | background-image:url('tab_s.png'); 35 | background-repeat:no-repeat; 36 | background-position:right; 37 | color: #184C80; 38 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); 39 | text-decoration: none; 40 | outline: none; 41 | } 42 | 43 | .tabs3 .tablist a { 44 | padding: 0 10px; 45 | } 46 | 47 | .tablist a:hover { 48 | background-image: url('tab_h.png'); 49 | background-repeat:repeat-x; 50 | color: #fff; 51 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 52 | text-decoration: none; 53 | } 54 | 55 | .tablist li.current a { 56 | background-image: url('tab_a.png'); 57 | background-repeat:repeat-x; 58 | color: #fff; 59 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 60 | } 61 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexObject.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexObject.cpp 3 | * 4 | * The implementation of class NexObject. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | #include "NexObject.h" 16 | 17 | NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name) 18 | { 19 | this->__pid = pid; 20 | this->__cid = cid; 21 | this->__name = name; 22 | } 23 | 24 | uint8_t NexObject::getObjPid(void) 25 | { 26 | return __pid; 27 | } 28 | 29 | uint8_t NexObject::getObjCid(void) 30 | { 31 | return __cid; 32 | } 33 | 34 | const char* NexObject::getObjName(void) 35 | { 36 | return __name; 37 | } 38 | 39 | void NexObject::printObjInfo(void) 40 | { 41 | dbSerialPrint("["); 42 | dbSerialPrint((uint32_t)this); 43 | dbSerialPrint(":"); 44 | dbSerialPrint(__pid); 45 | dbSerialPrint(","); 46 | dbSerialPrint(__cid); 47 | dbSerialPrint(","); 48 | if (__name) 49 | { 50 | dbSerialPrint(__name); 51 | } 52 | else 53 | { 54 | dbSerialPrint("(null)"); 55 | } 56 | dbSerialPrintln("]"); 57 | } 58 | 59 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/doc/Documentation/_nex_touch_8h__incl.dot: -------------------------------------------------------------------------------- 1 | digraph "NexTouch.h" 2 | { 3 | edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; 4 | node [fontname="Helvetica",fontsize="10",shape=record]; 5 | Node1 [label="NexTouch.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; 6 | Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 7 | Node2 [label="itead.h",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled"]; 8 | Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 9 | Node3 [label="stdlib.h",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled"]; 10 | Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 11 | Node4 [label="NexConfig.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_config_8h.html",tooltip="Options for user can be found here. "]; 12 | Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 13 | Node5 [label="NexObject.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_object_8h.html",tooltip="The definition of class NexObject. "]; 14 | Node5 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 15 | Node5 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; 16 | } 17 | -------------------------------------------------------------------------------- /libraries/itead_SSD1306/README.txt: -------------------------------------------------------------------------------- 1 | This is a library for our Monochrome OLEDs based on SSD1306 drivers 2 | 3 | Pick one up today in the adafruit shop! 4 | ------> http://www.adafruit.com/category/63_98 5 | 6 | These displays use SPI to communicate, 4 or 5 pins are required to 7 | interface 8 | 9 | Adafruit invests time and resources providing this open source code, 10 | please support Adafruit and open-source hardware by purchasing 11 | products from Adafruit! 12 | 13 | Written by Limor Fried/Ladyada for Adafruit Industries. 14 | Scrolling code contributed by Michael Gregg 15 | BSD license, check license.txt for more information 16 | All text above must be included in any redistribution 17 | 18 | 19 | 20 | To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder Adafruit_SSD1306. Check that the Adafruit_SSD1306 folder contains Adafruit_SSD1306.cpp and Adafruit_SSD1306.h 21 | 22 | Place the Adafruit_SSD1306 library folder your /libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. 23 | 24 | You will also have to download the Adafruit GFX Graphics core which does all the circles, text, rectangles, etc. You can get it from 25 | https://github.com/adafruit/Adafruit-GFX-Library 26 | and download/install that library as well 27 | 28 | MODIFIED BY ! 29 | Desc: This lib is transplanted to itead sdk by Wu Pengfei. 30 | Date: 2014.3.31 31 | Email: pengfei.wu@itead.cc -------------------------------------------------------------------------------- /examples/Basics/Blink/Blink.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * @example Blink.ino 3 | * 4 | * @copyright 5 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License as 8 | * published by the Free Software Foundation; either version 2 of 9 | * the License, or (at your option) any later version. 10 | */ 11 | /* 12 | Blink 13 | Turns on an LED on for one second, then off for one second, repeatedly. 14 | 15 | This example code is in the public domain. 16 | */ 17 | 18 | // We assume that pin 13 has an LED connected on your board. 19 | // give it a name: 20 | //int led = 13; 21 | 22 | //test on BeagleBone Black 23 | int led = GPIO1_28; 24 | 25 | // the setup routine runs once when you press reset: 26 | void setup() { 27 | // initialize the digital pin as an output. 28 | pinMode(led, OUTPUT); 29 | //int ret; 30 | // pinMode(led, INPUT); 31 | // ret = digitalRead(led); 32 | // printf("ret is %d\n",ret); 33 | digitalWrite(led, LOW); // turn the LED on (HIGH is the voltage level) 34 | } 35 | 36 | // the loop routine runs over and over again forever: 37 | void loop() { 38 | 39 | digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) 40 | // delay(1000); // wait for a second 41 | digitalWrite(led, LOW); // turn the LED off by making the voltage LOW 42 | // delay(1000); // wait for a second 43 | } 44 | -------------------------------------------------------------------------------- /libraries/itead_IoTgo/Dev_THSensor.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file Dev_THSensor.h 3 | * 4 | * THSensor API of IoTgo (iotgo.iteadstudio.com) 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2014/11/17 8 | * @copyright 9 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #ifndef __DEV_THSENSOR_H__ 17 | #define __DEV_THSENSOR_H__ 18 | 19 | #include 20 | 21 | #include "IoTgo.h" 22 | #include "Dev_THSensorInterface.h" 23 | 24 | /** 25 | * @addtogroup THSensor 26 | * @{ 27 | */ 28 | 29 | /** 30 | * THSensor, subclass of IoTgo, provides simple methods to read temperature and 31 | * humidity from devices. 32 | */ 33 | class THSensor: public IoTgo 34 | { 35 | public: /* public methods */ 36 | THSensor(THSensorInterface *sensor); 37 | int32_t begin(void); 38 | int32_t end(void); 39 | int32_t sync(void); 40 | int32_t getTemperatureC(float *temp_c); 41 | int32_t getTemperatureF(float *temp_f); 42 | int32_t getHumidity(float *hum); 43 | int32_t getAll(float *temp_c, float *temp_f, float *hum); 44 | 45 | private: /* private data */ 46 | THSensorInterface *sensor; 47 | }; 48 | 49 | /** @} */ 50 | 51 | #endif /* #ifndef __DEV_THSENSOR_H__ */ 52 | -------------------------------------------------------------------------------- /libraries/itead_IoTgo/IoTgo_error.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file IoTgo_error.h 3 | * 4 | * Define macros indicate error type. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2014/11/19 8 | * @copyright 9 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #ifndef __IOTGOERROR_H__ 17 | #define __IOTGOERROR_H__ 18 | 19 | /** 20 | * @addtogroup Error 21 | * @{ 22 | */ 23 | 24 | /** 25 | * IoTgo errors. 26 | */ 27 | enum IoTgoError 28 | { 29 | /* General */ 30 | ERR_INVALID_PARAMETER = -1, /**< Invalid parameters */ 31 | 32 | /* Net */ 33 | ERR_NO_RESPONSE = -100, /**< No response from server */ 34 | ERR_NO_EXPECT = -101, /**< No contents expected in response */ 35 | 36 | /* Device */ 37 | ERR_NO_DEVICES_AVAILABLE = -200, /**< No devices available */ 38 | ERR_INIT_DEVICE_FAILED = -201, /**< Initialize device failed */ 39 | ERR_READ_DEVICE_FAILED = -202, /**< Read device failed */ 40 | ERR_WRITE_DEVICE_FAILED = -203, /**< Write device failed */ 41 | ERR_CLOSE_DEVICE_FAILED = -204, /**< Close device failed */ 42 | }; 43 | 44 | /** @} */ 45 | 46 | #endif /* #ifndef __IOTGOERROR_H__ */ 47 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexConfig.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexConfig.h 3 | * 4 | * Options for user can be found here. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * @copyright 9 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | #ifndef __NEXCONFIG_H__ 16 | #define __NEXCONFIG_H__ 17 | 18 | 19 | 20 | /** 21 | * @addtogroup Configuration 22 | * @{ 23 | */ 24 | 25 | /** 26 | * Define DEBUG_SERIAL_ENABLE to enable debug serial. 27 | * Comment it to disable debug serial. 28 | */ 29 | //#define DEBUG_SERIAL_ENABLE 30 | 31 | /** 32 | * Define dbSerial for the output of debug messages. 33 | */ 34 | //#define dbSerial Serial 35 | 36 | /** 37 | * Define nexSerial for communicate with Nextion touch panel. 38 | */ 39 | #define nexSerial Serial0 40 | 41 | 42 | #ifdef DEBUG_SERIAL_ENABLE 43 | #define dbSerialPrint(a) dbSerial.print(a) 44 | #define dbSerialPrintln(a) dbSerial.println(a) 45 | #define dbSerialBegin(a) dbSerial.begin(a) 46 | #else 47 | #define dbSerialPrint(a) do{}while(0) 48 | #define dbSerialPrintln(a) do{}while(0) 49 | #define dbSerialBegin(a) do{}while(0) 50 | #endif 51 | 52 | /** 53 | * @} 54 | */ 55 | 56 | #endif /* #ifndef __NEXCONFIG_H__ */ 57 | -------------------------------------------------------------------------------- /examples/Basics/Fade/Fade.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * @example Fade.ino 3 | * 4 | * @copyright 5 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License as 8 | * published by the Free Software Foundation; either version 2 of 9 | * the License, or (at your option) any later version. 10 | */ 11 | 12 | /* 13 | Fade 14 | 15 | This example shows how to fade an LED on pin 13 16 | using the analogWrite() function. 17 | 18 | This example code is in the public domain. 19 | */ 20 | 21 | int led = 13; // the pin that the LED is attached to 22 | //test on BeagleBone Black 23 | led = GPIO1_17; 24 | 25 | int brightness = 0; // how bright the LED is 26 | int fadeAmount = 5; // how many points to fade the LED by 27 | 28 | // the setup routine runs once when you press reset: 29 | void setup() { 30 | // declare pin 13 to be an output: 31 | pinMode(led, OUTPUT); 32 | } 33 | 34 | // the loop routine runs over and over again forever: 35 | void loop() { 36 | // set the brightness of pin 13: 37 | analogWrite(led, brightness); 38 | 39 | // change the brightness for next time through the loop: 40 | brightness = brightness + fadeAmount; 41 | 42 | // reverse the direction of the fading at the ends of the fade: 43 | if (brightness == 0 || brightness == 255) { 44 | fadeAmount = -fadeAmount ; 45 | } 46 | // wait for 30 milliseconds to see the dimming effect 47 | delay(30); 48 | } 49 | 50 | -------------------------------------------------------------------------------- /tools/test/gpio.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char **argv) 4 | { 5 | uint16_t pin; 6 | char cmd_read; 7 | char cmd_write; 8 | uint8_t value; 9 | 10 | if(argc != 3 && argc != 4) 11 | { 12 | return_help: 13 | 14 | printf("Usage:\n"); 15 | printf(" ./gpio r pin\n"); 16 | printf(" ./gpio w pin value\n"); 17 | printf("\n"); 18 | printf("Example:\n"); 19 | printf(" ./gpio r 47\n"); 20 | printf(" ./gpio w 47 1\n"); 21 | printf(" ./gpio w 47 0\n"); 22 | printf("\n"); 23 | 24 | return 0; 25 | } 26 | 27 | /* Read Pin */ 28 | if(argc == 3) 29 | { 30 | cmd_read = argv[1][0]; 31 | pin = atoi(argv[2]); 32 | 33 | if(cmd_read != 'r') 34 | { 35 | goto return_help; 36 | } 37 | pinMode(pin, INPUT); 38 | printf("Read: pin%u = %u\n", pin, digitalRead(pin)); 39 | return 0; 40 | } 41 | 42 | /* Write Pin */ 43 | if(argc == 4) 44 | { 45 | cmd_read = argv[1][0]; 46 | pin = atoi(argv[2]); 47 | value = atoi(argv[3]); 48 | 49 | if(cmd_read != 'w') 50 | { 51 | goto return_help; 52 | } 53 | pinMode(pin, OUTPUT); 54 | if(digitalWrite(pin, value) == 0) 55 | { 56 | printf("Write: pin%u = %u\n", pin, value); 57 | return 0; 58 | } 59 | else 60 | { 61 | return -1; 62 | } 63 | 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /libraries/itead_PN532_SPI/examples/PtoPTarget/PtoPTarget.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | 4 | /*Chip select pin can be connected to D10 or D9 which is hareware optional*/ 5 | /*if you the version of NFC Shield from SeeedStudio is v2.0.*/ 6 | #define PN532_CS 109 7 | PN532 nfc(PN532_CS, SPI); 8 | 9 | #define NFC_DEMO_DEBUG 1 10 | 11 | void setup(void) { 12 | #ifdef NFC_DEMO_DEBUG 13 | printf("Hello!\n"); 14 | #endif 15 | nfc.begin(); 16 | 17 | uint32_t versiondata = nfc.getFirmwareVersion(); 18 | if (! versiondata) { 19 | #ifdef NFC_DEMO_DEBUG 20 | printf("Didn't find PN53x board"); 21 | #endif 22 | while (1); // halt 23 | } 24 | #ifdef NFC_DEMO_DEBUG 25 | // Got ok data, print it out! 26 | printf("Found chip PN5"); 27 | printf("%X\n",(versiondata>>24) & 0xFF); 28 | printf("Firmware ver. "); 29 | printf("%X",(versiondata>>16) & 0xFF); 30 | printf("."); 31 | printf("%X\n",(versiondata>>8) & 0xFF); 32 | printf("Supports "); 33 | printf("%X\n",versiondata & 0xFF); 34 | #endif 35 | // configure board to read RFID tags and cards 36 | nfc.SAMConfig(); 37 | } 38 | 39 | char DataOut[]="HELLO INITIATOR"; //16bytes 40 | char DataIn[16];//Should be 16bytes 41 | 42 | void loop(void) { 43 | 44 | // Configure PN532 as Peer to Peer Target 45 | if(nfc.configurePeerAsTarget()) //if connection is error-free 46 | { 47 | //trans-receive data 48 | if(nfc.targetTxRx(DataOut,DataIn)) 49 | { 50 | #ifdef NFC_DEMO_DEBUG 51 | printf("Data Received: "); 52 | printf("%s\n",DataIn); 53 | #endif 54 | } 55 | } 56 | 57 | } 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /libraries/itead_GFX/license.txt: -------------------------------------------------------------------------------- 1 | Software License Agreement (BSD License) 2 | 3 | Copyright (c) 2012, Adafruit Industries 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 1. Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 2. Redistributions in binary form must reproduce the above copyright 11 | notice, this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | 3. Neither the name of the copyright holders nor the 14 | names of its contributors may be used to endorse or promote products 15 | derived from this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY 18 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY 21 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /libraries/itead_SSD1306/license.txt: -------------------------------------------------------------------------------- 1 | Software License Agreement (BSD License) 2 | 3 | Copyright (c) 2012, Adafruit Industries 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 1. Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 2. Redistributions in binary form must reproduce the above copyright 11 | notice, this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | 3. Neither the name of the copyright holders nor the 14 | names of its contributors may be used to endorse or promote products 15 | derived from this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY 18 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY 21 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /SDK_Python/core/setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | from distutils.core import setup, Extension 4 | 5 | mod_iteadcfunction = Extension( 6 | 'iteadcfunction', 7 | libraries = ['iteadc'], 8 | sources = ['iteadcfunction-py.cpp'] 9 | ) 10 | 11 | mod_iteadserial = Extension( 12 | 'iteadserial', 13 | libraries = ['iteadc', 'iteadcpp'], 14 | sources = ['iteadserial-py.cpp'] 15 | ) 16 | 17 | mod_iteadspi = Extension( 18 | 'iteadspi', 19 | libraries = ['iteadc', 'iteadcpp'], 20 | sources = ['iteadspi-py.cpp'] 21 | ) 22 | 23 | mod_iteadwire = Extension( 24 | 'iteadwire', 25 | libraries = ['iteadc', 'iteadcpp'], 26 | sources = ['iteadwire-py.cpp'] 27 | ) 28 | 29 | 30 | setup( 31 | name = "ITEAD-OS-SDK-Py", # Package name 32 | version = "0.1", # Version 33 | description = "ITEAD-OS-SDK Python Interface", 34 | author = "Wu Pengfei", 35 | author_email = "pengfei.wu@itead.cc", 36 | url = "https://github.com/itead", 37 | long_description= "This is a package of ITEAD-OS-SDK Python Interface.", 38 | license = "GPL2.0 and later versions", 39 | ext_modules = [ 40 | mod_iteadcfunction, # Python interface of fucntions in iteadc.so 41 | mod_iteadserial, # Python interface of Serial_ in iteadcpp.so 42 | mod_iteadspi, # Python interface of SPIClass in iteadcpp.so 43 | mod_iteadwire, # Python interface of TwoWire in iteadcpp.so 44 | ] 45 | ) 46 | 47 | print "Done!" 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/examples/5-DTMF/DTMF.ino: -------------------------------------------------------------------------------- 1 | #include "SIM900.h" 2 | #include "sms.h" 3 | #include "call.h" 4 | 5 | 6 | //Simple sketch to detect DTMF tones during a call 7 | 8 | //We have to create the classes for calls. 9 | #define GSM_POWER_PIN 11 10 | SIMCOM900 gsm(GSM_POWER_PIN,Serial2); 11 | CallGSM call(gsm); 12 | 13 | char number[20]; 14 | byte stat=0; 15 | int value=0; 16 | int pin=10; /* no used ??? */ 17 | char value_str[5]; 18 | char DTMF_char='_'; 19 | int count=0; 20 | 21 | void setup() 22 | { 23 | pinMode(pin,INPUT); 24 | //Serial connection. 25 | printf("GSM Shield DTMF Test\n"); 26 | printf("Start...\n"); 27 | //Start configuration of shield with baudrate. 28 | //For http uses is raccomanded to use 4800 or slower. 29 | if (gsm.begin(9600)) 30 | printf("\nstatus=READY\n"); 31 | else printf("\nstatus=IDLE\n"); 32 | //Enable DTMF detection for SIM900 33 | call.SetDTMF(1); 34 | }; 35 | 36 | void loop() 37 | { 38 | //Chekcs status of call 39 | stat=call.CallStatus(); 40 | //If the incoming call is from an authorized number 41 | //saved on SIM in the positions range from 1 to 3. 42 | if(stat==CALL_INCOM_VOICE) { 43 | printf("Pick Up\n"); 44 | delay(50); 45 | call.PickUp(); 46 | } 47 | while(stat==CALL_ACTIVE_VOICE) { 48 | for (int k=0; k<100; k++) { 49 | DTMF_char=call.DetDTMF(); 50 | if(DTMF_char!='-') 51 | printf("%c",DTMF_char); 52 | } 53 | stat=call.CallStatus(); 54 | 55 | } 56 | delay(1000); 57 | }; 58 | -------------------------------------------------------------------------------- /libraries/itead_PN532_SPI/examples/PtoPInitiator/PtoPInitiator.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | 4 | /*Chip select pin can be connected to D10 or D9 which is hareware optional*/ 5 | /*if you the version of NFC Shield from SeeedStudio is v2.0.*/ 6 | #define PN532_CS 109 7 | PN532 nfc(PN532_CS,SPI); 8 | 9 | #define NFC_DEMO_DEBUG 1 10 | 11 | void setup(void) { 12 | #ifdef NFC_DEMO_DEBUG 13 | printf("Hello!\n"); 14 | #endif 15 | nfc.begin(); 16 | 17 | uint32_t versiondata = nfc.getFirmwareVersion(); 18 | if (! versiondata) { 19 | #ifdef NFC_DEMO_DEBUG 20 | printf("Didn't find PN53x board\n"); 21 | #endif 22 | while (1); // halt 23 | } 24 | #ifdef NFC_DEMO_DEBUG 25 | // Got ok data, print it out! 26 | printf("Found chip PN5 "); 27 | printf("%X\n",(versiondata>>24) & 0xFF); 28 | printf("Firmware ver. "); 29 | printf("%u",(versiondata>>16) & 0xFF); 30 | printf("."); 31 | printf("%u\n",(versiondata>>8) & 0xFF); 32 | printf("Supports "); 33 | printf("%u\n",versiondata & 0xFF); 34 | #endif 35 | // configure board to read RFID tags and cards 36 | nfc.SAMConfig(); 37 | } 38 | 39 | char DataOut[]="HELLO TARGET!!!"; //16bytes 40 | char DataIn[16];//Should be 16bytes 41 | void loop(void) { 42 | 43 | // Configure PN532 as Peer to Peer Initiator in active mode 44 | if( nfc.configurePeerAsInitiator(PN532_BAUDRATE_424K) ) //if connection is error-free 45 | { 46 | //trans-receive data 47 | if(nfc.initiatorTxRx(DataOut,DataIn)) 48 | { 49 | #ifdef NFC_DEMO_DEBUG 50 | printf("Data Sent and Received: "); 51 | printf("%s\n",DataIn); 52 | #endif 53 | } 54 | } 55 | } 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/examples/2-SMS/SMS.ino: -------------------------------------------------------------------------------- 1 | //Simple sketch to delete/get/write phone number. 2 | #include "SIM900.h" 3 | #include "sms.h" 4 | 5 | static SIMCOM900 gsm(11,Serial2); 6 | static SMSGSM sms(gsm); 7 | 8 | boolean started=false; 9 | int pos=0; 10 | char number[20]; 11 | char sms_buffer[200]; 12 | int ret; 13 | int i; 14 | 15 | void setup() 16 | { 17 | //Serial connection. 18 | printf("GSM Shield SMS Test\n"); 19 | printf("Start...\n"); 20 | if (gsm.begin(9600)) { 21 | printf("\nstatus=READY\n"); 22 | started=true; 23 | } else printf("\nstatus=IDLE\n"); 24 | 25 | if(!started) { 26 | printf("setup error,Halt now..."); 27 | while(1)delay(10000); 28 | } 29 | 30 | #if 0 31 | printf("Delete all messages\n"); 32 | for(i=1;i<=20;i++) { 33 | ret = sms.DeleteSMS(i); 34 | printf("Delete Pos= %d, sms.DeleteSMS ret= %d\n",i,ret); 35 | } 36 | #endif 37 | #if 0 38 | ret = sms.SendSMS("10086","101"); 39 | if ( ret == 1) { 40 | printf("Send OK\n"); 41 | delay(5000); 42 | } else { 43 | printf("Send ERR. ret = %d\n",ret); 44 | delay(3000); 45 | } 46 | #endif 47 | }; 48 | 49 | void loop() 50 | { 51 | pos = sms.IsSMSPresent(SMS_UNREAD); 52 | 53 | if(pos > 0) { 54 | sms.GetSMS(pos,number,sms_buffer,sizeof(sms_buffer)); 55 | printf("Pos: %d\n",pos); 56 | printf("From: %s\n",number); 57 | printf("Content: %s\n",sms_buffer); 58 | } else { 59 | printf("sms.IsSMSPresent(SMS_UNREAD) ret= %d\n",pos); 60 | } 61 | delay(1000); 62 | }; 63 | -------------------------------------------------------------------------------- /libraries/itead_GSM-GPRS-GPS/doc/Instructions.txt: -------------------------------------------------------------------------------- 1 | *************************************************** 2 | GSM/GPRS/GPS Shield of Futura/Open-electronics 3 | 4 | http://www.open-electronics.org/ 5 | 6 | http://store.open-electronics.org/index.php?route=common/home 7 | 8 | *************************************************** 9 | 10 | 11 | 12 | 13 | 14 | *************************************************** 15 | For support use the issues' page on google code: 16 | 17 | http://code.google.com/p/__gsm-shield-arduino/issues/ 18 | 19 | or Arduino Forum 20 | 21 | *************************************************** 22 | 23 | 24 | 25 | 26 | 27 | *************************************************** 28 | Library created by: 29 | 30 | Marco Martines 31 | 32 | martines[ dot ]marco[ at ]gmail[ dot ]com 33 | *************************************************** 34 | 35 | *************************************************** 36 | This library is transplanted to ITEAD-OS-SDK by : 37 | 38 | Wu Pengfei 39 | 40 | pengfei.wu@itead.cc 41 | *************************************************** 42 | 43 | 44 | 45 | 46 | [1] My shield doesn't work. Why? 47 | 48 | Check this steps and then ask for support on the issues' page on google 49 | code. 50 | 51 | 1) SIM900 and SIM908 require about 1 A during the hardest tasks. 52 | You should have an external power source that can provide about 53 | 1 A at 8-12 V 54 | 55 | 2) If the SIM90X blinks (1 Hz) for some seconds and then turn off, 56 | probably it's a communication's problem. Check the switch/jumpers 57 | for Serial communication. 58 | 59 | 3) Check the jumper of communication, power source (battery or externel) and charge. 60 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexSlider.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexSlider.h 3 | * 4 | * The definition of class NexSlider. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * 9 | * @copyright 10 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 11 | * This program is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU General Public License as 13 | * published by the Free Software Foundation; either version 2 of 14 | * the License, or (at your option) any later version. 15 | */ 16 | 17 | #ifndef __NEXSLIDER_H__ 18 | #define __NEXSLIDER_H__ 19 | 20 | #include "NexTouch.h" 21 | #include "NexHardware.h" 22 | /** 23 | * @addtogroup Component 24 | * @{ 25 | */ 26 | 27 | /** 28 | * NexSlider component. 29 | */ 30 | class NexSlider: public NexTouch 31 | { 32 | public: /* methods */ 33 | /** 34 | * @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name); 35 | */ 36 | NexSlider(uint8_t pid, uint8_t cid, const char *name); 37 | 38 | /** 39 | * Get the value of slider. 40 | * 41 | * @param number - an output parameter to save the value of slider. 42 | * 43 | * @retval true - success. 44 | * @retval false - failed. 45 | */ 46 | bool getValue(uint32_t *number); 47 | 48 | /** 49 | * Set the value of slider. 50 | * 51 | * @param number - the value of slider. 52 | * 53 | * @retval true - success. 54 | * @retval false - failed. 55 | */ 56 | bool setValue(uint32_t number); 57 | }; 58 | /** 59 | * @} 60 | */ 61 | 62 | 63 | #endif /* #ifndef __NEXSLIDER_H__ */ 64 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/examples/CompButton/CompButton.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * @example CompButton.ino 3 | * 4 | * @par How to Use 5 | * Show how to use API of class NexButton. 6 | * 7 | * @author Wu Pengfei (email:) 8 | * @date 2015/7/10 9 | * @copyright 10 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 11 | * This program is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU General Public License as 13 | * published by the Free Software Foundation; either version 2 of 14 | * the License, or (at your option) any later version. 15 | */ 16 | 17 | #include "Nextion.h" 18 | 19 | NexButton b0 = NexButton(0, 1, "b0"); 20 | 21 | char buffer[100] = {0}; 22 | 23 | NexTouch *nex_listen_list[] = 24 | { 25 | &b0, 26 | NULL 27 | }; 28 | 29 | void b0PopCallback(void *ptr) 30 | { 31 | uint16_t len; 32 | uint16_t number; 33 | NexButton *btn = (NexButton *)ptr; 34 | dbSerialPrintln("b0PopCallback"); 35 | dbSerialPrint("ptr="); 36 | dbSerialPrintln((uint32_t)ptr); 37 | memset(buffer, 0, sizeof(buffer)); 38 | btn->getText(buffer, sizeof(buffer)); 39 | 40 | number = atoi(buffer); 41 | number += 1; 42 | 43 | memset(buffer, 0, sizeof(buffer)); 44 | //itoa(number, buffer, 10); 45 | sprintf(buffer,"%d",number); 46 | 47 | btn->setText(buffer); 48 | } 49 | 50 | void setup(void) 51 | { 52 | nexInit(); 53 | b0.attachPop(b0PopCallback, &b0); 54 | dbSerialPrintln("setup done"); 55 | } 56 | 57 | void loop(void) 58 | { 59 | nexLoop(nex_listen_list); 60 | } 61 | -------------------------------------------------------------------------------- /libraries/itead_IoTgo/Dev_Light.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file Dev_Light.h 3 | * 4 | * Light API of IoTgo (iotgo.iteadstudio.com) 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2014/11/11 8 | * @copyright 9 | * Copyright (C) 2013-2014 ITEAD Intelligent Systems Co., Ltd. \n 10 | * This program is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU General Public License as 12 | * published by the Free Software Foundation; either version 2 of 13 | * the License, or (at your option) any later version. 14 | */ 15 | 16 | #ifndef __DEV_LIGHT_H__ 17 | #define __DEV_LIGHT_H__ 18 | 19 | #include 20 | 21 | #include "IoTgo.h" 22 | 23 | /** 24 | * @addtogroup Light 25 | * @{ 26 | */ 27 | 28 | /** 29 | * Indicate the state of light device. 30 | */ 31 | enum LightState 32 | { 33 | LIGHT_STATE_OFF = 0, /**< light off */ 34 | LIGHT_STATE_ON = 1, /**< light on */ 35 | }; 36 | 37 | /** 38 | * Light, subclass of IoTgo, provides simple methods to control light device. 39 | * 40 | */ 41 | class Light: public IoTgo 42 | { 43 | public: /* public methods */ 44 | Light(uint16_t light_pin); 45 | int32_t sync(void); 46 | int32_t getState(int32_t *state); 47 | int32_t on(void); 48 | int32_t off(void); 49 | 50 | private: /* private methods */ 51 | int32_t setState(int32_t state); 52 | 53 | private: /* private static data members */ 54 | static const char *STATE[]; 55 | static const char *VALUE_ON[]; 56 | static const char *VALUE_OFF[]; 57 | 58 | private: 59 | uint16_t light_pin; 60 | }; 61 | 62 | /** @} */ 63 | 64 | #endif /* #ifndef __DEV_LIGHT_H__ */ 65 | -------------------------------------------------------------------------------- /libraries/itead_Nextion/NexGauge.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file NexGauge.h 3 | * 4 | * The definition of class NexGauge. 5 | * 6 | * @author Wu Pengfei (email:) 7 | * @date 2015/8/13 8 | * 9 | * @copyright 10 | * Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n 11 | * This program is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU General Public License as 13 | * published by the Free Software Foundation; either version 2 of 14 | * the License, or (at your option) any later version. 15 | */ 16 | 17 | #ifndef __NEXGAUGE_H__ 18 | #define __NEXGAUGE_H__ 19 | 20 | #include "NexTouch.h" 21 | #include "NexHardware.h" 22 | #include 23 | 24 | /** 25 | * @addtogroup Component 26 | * @{ 27 | */ 28 | 29 | /** 30 | * NexGauge component. 31 | */ 32 | class NexGauge: public NexObject 33 | { 34 | public: /* methods */ 35 | /** 36 | * @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name); 37 | */ 38 | NexGauge(uint8_t pid, uint8_t cid, const char *name); 39 | 40 | /** 41 | * Get the value of gauge. 42 | * 43 | * @param number - an output parameter to save gauge's value. 44 | * 45 | * @retval true - success. 46 | * @retval false - failed. 47 | */ 48 | bool getValue(uint32_t *number); 49 | 50 | /** 51 | * Set the value of gauge. 52 | * 53 | * @param number - the value of gauge. 54 | * 55 | * @retval true - success. 56 | * @retval false - failed. 57 | */ 58 | bool setValue(uint32_t number); 59 | }; 60 | 61 | /** 62 | * @} 63 | */ 64 | 65 | #endif /* #ifndef __NEXGAUGE_H__ */ 66 | --------------------------------------------------------------------------------