├── Chipbook ├── PineconePinano.h ├── README.md ├── STC8-English.pdf ├── STC8A4K64S2A12.pdf └── stc-isp.zip ├── Document ├── Nano-Teaching documents.pdf ├── Nano入门指南.pdf └── README.md ├── Example project ├── Example project.uvgui.hasee ├── Example project.uvopt ├── Example project.uvproj ├── Library │ ├── README.md │ ├── device │ │ ├── HC_SR04 │ │ │ ├── HC_SR04.c │ │ │ ├── HC_SR04.h │ │ │ └── README.md │ │ ├── MP3Player │ │ │ ├── README.md │ │ │ ├── mp3player.c │ │ │ └── mp3player.h │ │ ├── Servo │ │ │ ├── README.md │ │ │ ├── Servo.c │ │ │ └── Servo.h │ │ ├── WS2812B │ │ │ ├── README.md │ │ │ ├── ws2812b.c │ │ │ └── ws2812b.h │ │ └── digital tube │ │ │ ├── README.md │ │ │ ├── digitaltube.c │ │ │ └── digitaltube.h │ └── system │ │ ├── ADC │ │ ├── ADC linear parameters .png │ │ ├── ADC.c │ │ ├── ADC.h │ │ ├── High Precision ADC Reference Circuit .png │ │ ├── Low Precision ADC Reference Circuit .png │ │ └── README.md │ │ ├── CAN │ │ └── README.md │ │ ├── EEPROM │ │ ├── EEPROM attention .png │ │ ├── EEPROM.c │ │ ├── EEPROM.h │ │ └── README.md │ │ ├── EXTI │ │ ├── Exti.h │ │ ├── README.md │ │ └── exti.c │ │ ├── GPIO │ │ ├── README.md │ │ ├── gpio.c │ │ └── gpio.h │ │ ├── IIC │ │ ├── README.md │ │ ├── iic.c │ │ └── iic.h │ │ ├── PCA │ │ ├── PCA.c │ │ ├── PCA.h │ │ └── README.md │ │ ├── PWM │ │ ├── PWM.c │ │ ├── PWM.h │ │ └── README.md │ │ ├── SPI │ │ └── README.md │ │ ├── SYSTEM(Important documents) │ │ ├── PineconePinano.h │ │ └── system.h │ │ ├── TIMER │ │ ├── README.md │ │ ├── timer.c │ │ └── timer.h │ │ ├── UART │ │ ├── README.md │ │ ├── uart.c │ │ └── uart.h │ │ ├── WatchDog │ │ ├── README.md │ │ ├── watchdog.c │ │ └── watchdog.h │ │ └── delay │ │ ├── Delay.c │ │ ├── Delay.h │ │ └── README.md ├── Listings │ ├── ADC.lst │ ├── Delay.lst │ ├── EEPROM.lst │ ├── Example project.m51 │ ├── HC_SR04.lst │ ├── PCA.lst │ ├── PWM.lst │ ├── Servo.lst │ ├── digitaltube.lst │ ├── exti.lst │ ├── gpio.lst │ ├── iic.lst │ ├── main.lst │ ├── mp3player.lst │ ├── timer.lst │ ├── uart.lst │ ├── watchdog.lst │ └── ws2812b.lst ├── Objects │ ├── ADC.obj │ ├── Delay.obj │ ├── EEPROM.obj │ ├── Example project │ ├── Example project.build_log.htm │ ├── Example project.lnp │ ├── HC_SR04.obj │ ├── PCA.obj │ ├── PWM.obj │ ├── Servo.obj │ ├── digitaltube.obj │ ├── exti.obj │ ├── gpio.obj │ ├── iic.obj │ ├── main.obj │ ├── mp3player.obj │ ├── timer.obj │ ├── uart.obj │ ├── watchdog.obj │ └── ws2812b.obj ├── README.md └── main.c ├── LICENSE ├── Library ├── README.md ├── device │ ├── DL-LN33 │ │ ├── DL_LN33.c │ │ └── DL_LN33.h │ ├── DS3231 │ │ ├── DS3231.c │ │ ├── DS3231.h │ │ └── 时钟芯片 DS3231_cn.pdf │ ├── Digital_Tube(Board) │ │ ├── README.md │ │ ├── digitaltube.c │ │ └── digitaltube.h │ ├── HC_SR04 │ │ ├── HC_SR04.c │ │ ├── HC_SR04.h │ │ └── README.md │ ├── LCD_1602 │ │ ├── 1602A使用说明书.pdf │ │ ├── LCD1602.c │ │ └── LCD1602.h │ ├── MP3Player │ │ ├── README.md │ │ ├── mp3player.c │ │ └── mp3player.h │ ├── OLED(IIC) │ │ ├── OLED_IIC.c │ │ └── OLED_IIC.h │ ├── SHT20 │ │ ├── sht20.c │ │ └── sht20.h │ ├── Servo │ │ ├── README.md │ │ ├── Servo.c │ │ └── Servo.h │ ├── W25QXX │ │ ├── W25Q128.c │ │ ├── W25Q128.h │ │ └── W25X16中文手册.pdf │ └── WS2812B │ │ ├── README.md │ │ ├── ws2812b.c │ │ └── ws2812b.h └── system │ ├── ADC │ ├── ADC linear parameters .png │ ├── ADC.c │ ├── ADC.h │ ├── High Precision ADC Reference Circuit .png │ ├── Low Precision ADC Reference Circuit .png │ └── README.md │ ├── CAN │ └── README.md │ ├── EEPROM │ ├── EEPROM attention .png │ ├── EEPROM.c │ ├── EEPROM.h │ └── README.md │ ├── EXTI │ ├── Exti.h │ ├── README.md │ └── exti.c │ ├── GPIO │ ├── README.md │ ├── gpio.c │ └── gpio.h │ ├── IIC │ ├── README.md │ ├── iic.c │ └── iic.h │ ├── PCA │ ├── PCA.c │ ├── PCA.h │ └── README.md │ ├── PWM │ ├── PWM.c │ ├── PWM.h │ └── README.md │ ├── SPI │ └── README.md │ ├── SYSTEM │ ├── PineconePiNano.h │ └── System.h │ ├── TIMER │ ├── README.md │ ├── timer.c │ └── timer.h │ ├── UART │ ├── README.md │ ├── uart.c │ └── uart.h │ ├── WatchDog │ ├── README.md │ ├── watchdog.c │ └── watchdog.h │ └── delay │ ├── README.md │ ├── delay.c │ └── delay.h ├── PinCard ├── PinCard.jpg └── README.md ├── Project ├── 520 Day │ ├── Example project.uvgui.hasee │ ├── Example project.uvopt │ ├── Example project.uvproj │ ├── Library │ │ ├── README.md │ │ ├── device │ │ │ ├── HC_SR04 │ │ │ │ ├── HC_SR04.c │ │ │ │ ├── HC_SR04.h │ │ │ │ └── README.md │ │ │ ├── MP3Player │ │ │ │ ├── README.md │ │ │ │ ├── mp3player.c │ │ │ │ └── mp3player.h │ │ │ ├── Servo │ │ │ │ ├── README.md │ │ │ │ ├── Servo.c │ │ │ │ └── Servo.h │ │ │ ├── WS2812B │ │ │ │ ├── README.md │ │ │ │ ├── ws2812b.c │ │ │ │ └── ws2812b.h │ │ │ └── digital tube │ │ │ │ ├── README.md │ │ │ │ ├── digitaltube.c │ │ │ │ └── digitaltube.h │ │ └── system │ │ │ ├── ADC │ │ │ ├── ADC linear parameters .png │ │ │ ├── ADC.c │ │ │ ├── ADC.h │ │ │ ├── High Precision ADC Reference Circuit .png │ │ │ ├── Low Precision ADC Reference Circuit .png │ │ │ └── README.md │ │ │ ├── CAN │ │ │ └── README.md │ │ │ ├── EEPROM │ │ │ ├── EEPROM attention .png │ │ │ ├── EEPROM.c │ │ │ ├── EEPROM.h │ │ │ └── README.md │ │ │ ├── EXTI │ │ │ ├── Exti.h │ │ │ ├── README.md │ │ │ └── exti.c │ │ │ ├── GPIO │ │ │ ├── README.md │ │ │ ├── gpio.c │ │ │ └── gpio.h │ │ │ ├── IIC │ │ │ ├── README.md │ │ │ ├── iic.c │ │ │ └── iic.h │ │ │ ├── PCA │ │ │ ├── PCA.c │ │ │ ├── PCA.h │ │ │ └── README.md │ │ │ ├── PWM │ │ │ ├── PWM.c │ │ │ ├── PWM.h │ │ │ └── README.md │ │ │ ├── SPI │ │ │ └── README.md │ │ │ ├── SYSTEM(Important documents) │ │ │ ├── PineconePinano.h │ │ │ └── system.h │ │ │ ├── TIMER │ │ │ ├── README.md │ │ │ ├── timer.c │ │ │ └── timer.h │ │ │ ├── UART │ │ │ ├── README.md │ │ │ ├── uart.c │ │ │ └── uart.h │ │ │ ├── WatchDog │ │ │ ├── README.md │ │ │ ├── watchdog.c │ │ │ └── watchdog.h │ │ │ └── delay │ │ │ ├── Delay.c │ │ │ ├── Delay.h │ │ │ └── README.md │ ├── Listings │ │ ├── ADC.lst │ │ ├── Delay.lst │ │ ├── EEPROM.lst │ │ ├── Example project.m51 │ │ ├── HC_SR04.lst │ │ ├── PCA.lst │ │ ├── PWM.lst │ │ ├── Servo.lst │ │ ├── digitaltube.lst │ │ ├── exti.lst │ │ ├── gpio.lst │ │ ├── iic.lst │ │ ├── main.lst │ │ ├── mp3player.lst │ │ ├── timer.lst │ │ ├── uart.lst │ │ ├── watchdog.lst │ │ └── ws2812b.lst │ ├── Objects │ │ ├── ADC.obj │ │ ├── Delay.obj │ │ ├── EEPROM.obj │ │ ├── Example project │ │ ├── Example project.build_log.htm │ │ ├── Example project.hex │ │ ├── Example project.lnp │ │ ├── HC_SR04.obj │ │ ├── PCA.obj │ │ ├── PWM.obj │ │ ├── Servo.obj │ │ ├── digitaltube.obj │ │ ├── exti.obj │ │ ├── gpio.obj │ │ ├── iic.obj │ │ ├── main.obj │ │ ├── mp3player.obj │ │ ├── timer.obj │ │ ├── uart.obj │ │ ├── watchdog.obj │ │ └── ws2812b.obj │ ├── README.md │ └── main.c ├── ESP8266_IOT_By_Gizwits │ ├── Hal │ │ └── Hal_Usart │ │ │ ├── hal_uart.c │ │ │ └── hal_uart.h │ ├── MCU_STC15xx_User_Guitde_V0.6.pdf │ ├── README.md │ ├── SYSTEM │ │ ├── PineconePiNano.h │ │ └── System.h │ ├── Tools │ │ ├── FLASH_DOWNLOAD │ │ │ └── flash_download_tools_v3.6.6.zip │ │ ├── GAgent_BIN │ │ │ └── GAgent_00ESP826_04020034-1529147544607.rar │ │ └── README.md │ └── User │ │ └── stdint.h ├── Jetson_Nano_IOT │ ├── Changelog.txt │ ├── Gizwits │ │ ├── gizwits_product.c │ │ ├── gizwits_product.h │ │ ├── gizwits_protocol.c │ │ └── gizwits_protocol.h │ ├── Hal │ │ ├── Hal_Usart │ │ │ ├── hal_uart.c │ │ │ └── hal_uart.h │ │ └── Hal_key │ │ │ ├── Hal_key.c │ │ │ └── Hal_key.h │ ├── Lib │ │ └── Delay │ │ │ ├── Delay.c │ │ │ ├── Delay.h │ │ │ └── README.md │ ├── MCU_STC15xx_User_Guitde_V0.6.pdf │ ├── Project │ │ ├── Delay.lst │ │ ├── Delay.obj │ │ ├── Hal_key.lst │ │ ├── Hal_key.obj │ │ ├── STC15F2K60S2 │ │ ├── STC15F2K60S2.M51 │ │ ├── STC15F2K60S2.build_log.htm │ │ ├── STC15F2K60S2.hex │ │ ├── STC15F2K60S2.lnp │ │ ├── STC15F2K60S2.plg │ │ ├── STC15F2K60S2.uvgui.hasee │ │ ├── STC15F2K60S2.uvopt │ │ ├── STC15F2K60S2.uvproj │ │ ├── STC15F2K60S2_uvopt.bak │ │ ├── STC15F2K60S2_uvproj.bak │ │ ├── common.lst │ │ ├── common.obj │ │ ├── dataPointTools.lst │ │ ├── dataPointTools.obj │ │ ├── gizwits_product.lst │ │ ├── gizwits_product.obj │ │ ├── gizwits_protocol.lst │ │ ├── gizwits_protocol.obj │ │ ├── hal_uart.lst │ │ ├── hal_uart.obj │ │ ├── main.lst │ │ ├── main.obj │ │ ├── ringbuffer.lst │ │ └── ringbuffer.obj │ ├── README.md │ ├── SYSTEM │ │ ├── PineconePiNano.h │ │ └── System.h │ ├── User │ │ ├── STC15F2K60S2.H │ │ ├── main.c │ │ └── stdint.h │ └── Utils │ │ ├── common.c │ │ ├── common.h │ │ ├── dataPointTools.c │ │ ├── dataPointTools.h │ │ ├── ringBuffer.h │ │ └── ringbuffer.c └── README.md ├── README.md ├── README_zh.md ├── RTOS ├── README.md ├── RTX51 FULL │ ├── RTX51_FULL 7.00.zip │ ├── Setup.exe │ ├── Setup.ini │ ├── data1.cab │ ├── data1.hdr │ ├── data2.cab │ ├── data3.cab │ ├── ikernel.ex_ │ ├── layout.bin │ ├── readme.txt │ ├── setup.bmp │ ├── setup.inx │ └── wallpap.bmp └── RTX51-Chinese.pdf └── Schematic diagram and PCB doc ├── PineconePiNANO.zip ├── PineconePi_NANO.pdf └── README.md /Chipbook/PineconePinano.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Chipbook/PineconePinano.h -------------------------------------------------------------------------------- /Chipbook/README.md: -------------------------------------------------------------------------------- 1 | # PineconePi Nano([Click to enter the website](http://www.pineconepi.cn),Support:support@pineconepi.cn) 2 | ### **List** 3 | 4 | 1. STC8-English.pdf : Nano Chip datesheet 5 | 2. stc-isp.zip : Drive Programer +STC-ISP Download Software 6 | 3. PineconePinano.h : Chip .H file 7 | 8 | 9 | 10 | # Pinecone_Pi_Nano([点我进入官网](http://www.pineconepi.cn),官方交流企鹅群:481227232) 11 | ### **文件说明** 12 | 13 | 1. STC8A4K64S2A12.pdf : Nano板载芯片手册 14 | 2. stc-isp.zip : Nano驱动程序+STCISP下载程序+驱动安装说明 15 | 3. PineconePinano.h : Nano 核心头文件 16 | 17 | -------------------------------------------------------------------------------- /Chipbook/STC8-English.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Chipbook/STC8-English.pdf -------------------------------------------------------------------------------- /Chipbook/STC8A4K64S2A12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Chipbook/STC8A4K64S2A12.pdf -------------------------------------------------------------------------------- /Chipbook/stc-isp.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Chipbook/stc-isp.zip -------------------------------------------------------------------------------- /Document/Nano-Teaching documents.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Document/Nano-Teaching documents.pdf -------------------------------------------------------------------------------- /Document/Nano入门指南.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Document/Nano入门指南.pdf -------------------------------------------------------------------------------- /Document/README.md: -------------------------------------------------------------------------------- 1 | # PineconePi Nano([Click to enter the website](http://www.pineconepi.cn),Support:support@pineconepi.cn) 2 | ### **List** 3 | 4 | 1. Nano-Teaching documents.pdf:Teaching Documents(ENGLISH) 5 | 2. Nano入门指南.pdf:Teaching documents(Chinese) 6 | 7 | 8 | 9 | # Pinecone_Pi_Nano([点我进入官网](http://www.pineconepi.cn),官方交流企鹅群:481227232) 10 | ### **目录结构** 11 | 12 | 1. Nano-Teaching documents.pdf:教学文档(英文) 13 | 2. Nano入门指南.pdf:教学文档(中文) 14 | -------------------------------------------------------------------------------- /Example project/Example project.uvopt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1.0 5 | 6 |
### uVision Project, (C) Keil Software
7 | 8 | 9 | *.c 10 | *.s*; *.src; *.a* 11 | *.obj 12 | *.lib 13 | *.txt; *.h; *.inc 14 | *.plm 15 | *.cpp 16 | 0 17 | 18 | 19 | 20 | 0 21 | 0 22 | 23 | 24 | 25 | Example project 26 | 0x0 27 | MCS-51 28 | 29 | 24000000 30 | 31 | 1 32 | 1 33 | 1 34 | 0 35 | 0 36 | 37 | 38 | 0 39 | 65535 40 | 0 41 | 0 42 | 0 43 | 44 | 45 | 120 46 | 65 47 | 8 48 | .\Listings\ 49 | 50 | 51 | 1 52 | 1 53 | 1 54 | 0 55 | 1 56 | 1 57 | 0 58 | 1 59 | 0 60 | 0 61 | 0 62 | 0 63 | 64 | 65 | 1 66 | 1 67 | 1 68 | 1 69 | 1 70 | 1 71 | 1 72 | 0 73 | 0 74 | 75 | 76 | 1 77 | 0 78 | 1 79 | 80 | 255 81 | 82 | 1 83 | 0 84 | 1 85 | 1 86 | 1 87 | 1 88 | 1 89 | 1 90 | 1 91 | 1 92 | 0 93 | 1 94 | 1 95 | 1 96 | 0 97 | 1 98 | 1 99 | 1 100 | 1 101 | 0 102 | 0 103 | -1 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 0 119 | 120 | 121 | 0 122 | 1 123 | 0 124 | 0 125 | 0 126 | 0 127 | 0 128 | 0 129 | 0 130 | 0 131 | 0 132 | 0 133 | 0 134 | 0 135 | 0 136 | 0 137 | 0 138 | 0 139 | 0 140 | 0 141 | 0 142 | 0 143 | 0 144 | 0 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | main 153 | 1 154 | 0 155 | 0 156 | 0 157 | 158 | 1 159 | 1 160 | 1 161 | 0 162 | 0 163 | 0 164 | 0 165 | .\main.c 166 | main.c 167 | 0 168 | 0 169 | 170 | 171 | 172 | 173 | device 174 | 1 175 | 0 176 | 0 177 | 0 178 | 179 | 2 180 | 2 181 | 1 182 | 0 183 | 0 184 | 0 185 | 0 186 | .\Library\device\digital tube\digitaltube.c 187 | digitaltube.c 188 | 0 189 | 0 190 | 191 | 192 | 2 193 | 3 194 | 1 195 | 0 196 | 0 197 | 0 198 | 0 199 | .\Library\device\HC_SR04\HC_SR04.c 200 | HC_SR04.c 201 | 0 202 | 0 203 | 204 | 205 | 2 206 | 4 207 | 1 208 | 0 209 | 0 210 | 0 211 | 0 212 | .\Library\device\MP3Player\mp3player.c 213 | mp3player.c 214 | 0 215 | 0 216 | 217 | 218 | 2 219 | 5 220 | 1 221 | 0 222 | 0 223 | 0 224 | 0 225 | .\Library\device\Servo\Servo.c 226 | Servo.c 227 | 0 228 | 0 229 | 230 | 231 | 2 232 | 6 233 | 1 234 | 0 235 | 0 236 | 0 237 | 0 238 | .\Library\device\WS2812B\ws2812b.c 239 | ws2812b.c 240 | 0 241 | 0 242 | 243 | 244 | 245 | 246 | system 247 | 0 248 | 0 249 | 0 250 | 0 251 | 252 | 3 253 | 7 254 | 1 255 | 0 256 | 0 257 | 0 258 | 0 259 | .\Library\system\ADC\ADC.c 260 | ADC.c 261 | 0 262 | 0 263 | 264 | 265 | 3 266 | 8 267 | 1 268 | 0 269 | 0 270 | 0 271 | 0 272 | .\Library\system\delay\Delay.c 273 | Delay.c 274 | 0 275 | 0 276 | 277 | 278 | 3 279 | 9 280 | 1 281 | 0 282 | 0 283 | 0 284 | 0 285 | .\Library\system\EEPROM\EEPROM.c 286 | EEPROM.c 287 | 0 288 | 0 289 | 290 | 291 | 3 292 | 10 293 | 1 294 | 0 295 | 0 296 | 0 297 | 0 298 | .\Library\system\EXTI\exti.c 299 | exti.c 300 | 0 301 | 0 302 | 303 | 304 | 3 305 | 11 306 | 1 307 | 0 308 | 0 309 | 0 310 | 0 311 | .\Library\system\GPIO\gpio.c 312 | gpio.c 313 | 0 314 | 0 315 | 316 | 317 | 3 318 | 12 319 | 1 320 | 0 321 | 0 322 | 0 323 | 0 324 | .\Library\system\IIC\iic.c 325 | iic.c 326 | 0 327 | 0 328 | 329 | 330 | 3 331 | 13 332 | 1 333 | 0 334 | 0 335 | 0 336 | 0 337 | .\Library\system\PCA\PCA.c 338 | PCA.c 339 | 0 340 | 0 341 | 342 | 343 | 3 344 | 14 345 | 1 346 | 0 347 | 0 348 | 0 349 | 0 350 | .\Library\system\PWM\PWM.c 351 | PWM.c 352 | 0 353 | 0 354 | 355 | 356 | 3 357 | 15 358 | 5 359 | 0 360 | 0 361 | 0 362 | 0 363 | .\Library\system\SYSTEM(Important documents)\system.h 364 | system.h 365 | 0 366 | 0 367 | 368 | 369 | 3 370 | 16 371 | 1 372 | 0 373 | 0 374 | 0 375 | 0 376 | .\Library\system\TIMER\timer.c 377 | timer.c 378 | 0 379 | 0 380 | 381 | 382 | 3 383 | 17 384 | 1 385 | 0 386 | 0 387 | 0 388 | 0 389 | .\Library\system\UART\uart.c 390 | uart.c 391 | 0 392 | 0 393 | 394 | 395 | 3 396 | 18 397 | 1 398 | 0 399 | 0 400 | 0 401 | 0 402 | .\Library\system\WatchDog\watchdog.c 403 | watchdog.c 404 | 0 405 | 0 406 | 407 | 408 | 409 | 410 | readme 411 | 1 412 | 0 413 | 0 414 | 0 415 | 416 | 417 |
418 | -------------------------------------------------------------------------------- /Example project/Library/README.md: -------------------------------------------------------------------------------- 1 | ### **Library** 2 | 1. device : Nano 器件库 3 | 2. system : Nano 外设库 4 | 3. PS:如果要使用本库函数,请务必下载system文件夹下 system文件夹内的全部头文件 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example project/Library/device/HC_SR04/HC_SR04.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/device/HC_SR04/HC_SR04.c -------------------------------------------------------------------------------- /Example project/Library/device/HC_SR04/HC_SR04.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/device/HC_SR04/HC_SR04.h -------------------------------------------------------------------------------- /Example project/Library/device/HC_SR04/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file hc_sr04.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This article will be used for driving hc_sr04. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 24 Mhz 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example project/Library/device/MP3Player/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file mp3player.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This article will be used for driving MP3 Player. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * include library/system/uart uart.c & uaet.h 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ -------------------------------------------------------------------------------- /Example project/Library/device/MP3Player/mp3player.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/device/MP3Player/mp3player.c -------------------------------------------------------------------------------- /Example project/Library/device/MP3Player/mp3player.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/device/MP3Player/mp3player.h -------------------------------------------------------------------------------- /Example project/Library/device/Servo/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file Servo.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to control Servo 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example project/Library/device/Servo/Servo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/device/Servo/Servo.c -------------------------------------------------------------------------------- /Example project/Library/device/Servo/Servo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/device/Servo/Servo.h -------------------------------------------------------------------------------- /Example project/Library/device/WS2812B/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file ws2812b.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This article will be used for driving ws2812b. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 24 Mhz 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example project/Library/device/WS2812B/ws2812b.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/device/WS2812B/ws2812b.c -------------------------------------------------------------------------------- /Example project/Library/device/WS2812B/ws2812b.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/device/WS2812B/ws2812b.h -------------------------------------------------------------------------------- /Example project/Library/device/digital tube/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file digitaltube.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to set up digital tubes 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example project/Library/device/digital tube/digitaltube.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/device/digital tube/digitaltube.c -------------------------------------------------------------------------------- /Example project/Library/device/digital tube/digitaltube.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/device/digital tube/digitaltube.h -------------------------------------------------------------------------------- /Example project/Library/system/ADC/ADC linear parameters .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/ADC/ADC linear parameters .png -------------------------------------------------------------------------------- /Example project/Library/system/ADC/ADC.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/ADC/ADC.c -------------------------------------------------------------------------------- /Example project/Library/system/ADC/ADC.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/ADC/ADC.h -------------------------------------------------------------------------------- /Example project/Library/system/ADC/High Precision ADC Reference Circuit .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/ADC/High Precision ADC Reference Circuit .png -------------------------------------------------------------------------------- /Example project/Library/system/ADC/Low Precision ADC Reference Circuit .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/ADC/Low Precision ADC Reference Circuit .png -------------------------------------------------------------------------------- /Example project/Library/system/ADC/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file adc.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to configure ADC 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example project/Library/system/CAN/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Example project/Library/system/EEPROM/EEPROM attention .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/EEPROM/EEPROM attention .png -------------------------------------------------------------------------------- /Example project/Library/system/EEPROM/EEPROM.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/EEPROM/EEPROM.c -------------------------------------------------------------------------------- /Example project/Library/system/EEPROM/EEPROM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/EEPROM/EEPROM.h -------------------------------------------------------------------------------- /Example project/Library/system/EEPROM/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file eeprom.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to Configure internal EEPROM 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | *Pinecone Pi NANO: The size of EEPROM is set by STC-ISP 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example project/Library/system/EXTI/Exti.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/EXTI/Exti.h -------------------------------------------------------------------------------- /Example project/Library/system/EXTI/README.md: -------------------------------------------------------------------------------- 1 | ### **EXTI** 2 | /** 3 | ****************************************************************************** 4 | * @file exti.h 5 | * @author PineconePi 6 | * @version V1.0.0 7 | * @date 20-December-2018 8 | * @brief This file is used for external interrupt configuration 9 | * @License:GNU General Public License v3.0 10 | ****************************************************************************** 11 | * @attention 12 | 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Example project/Library/system/EXTI/exti.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/EXTI/exti.c -------------------------------------------------------------------------------- /Example project/Library/system/GPIO/README.md: -------------------------------------------------------------------------------- 1 | ### **GPIO** 2 | /** 3 | ****************************************************************************** 4 | * @file gpio.h 5 | * @author PineconePi 6 | * @version V1.0.0 7 | * @date 20-December-2018 8 | * @brief This document is used for GPIO configuration 9 | * @License:GNU General Public License v3.0 10 | ****************************************************************************** 11 | * @attention 12 | 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Example project/Library/system/GPIO/gpio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/GPIO/gpio.c -------------------------------------------------------------------------------- /Example project/Library/system/GPIO/gpio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/GPIO/gpio.h -------------------------------------------------------------------------------- /Example project/Library/system/IIC/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file iic.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to Configure hardware IIC 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | *To operate IIC-related registers in host mode, P_SW2 = 0x80 is required. 12 | *After settings are completed, you must P_SW2 = 0x00 13 | *The sample program is at the end of the file iic.c 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Example project/Library/system/IIC/iic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/IIC/iic.c -------------------------------------------------------------------------------- /Example project/Library/system/IIC/iic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/IIC/iic.h -------------------------------------------------------------------------------- /Example project/Library/system/PCA/PCA.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/PCA/PCA.c -------------------------------------------------------------------------------- /Example project/Library/system/PCA/PCA.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/PCA/PCA.h -------------------------------------------------------------------------------- /Example project/Library/system/PCA/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file PCA.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to configure PAC 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example project/Library/system/PWM/PWM.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/PWM/PWM.c -------------------------------------------------------------------------------- /Example project/Library/system/PWM/PWM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/PWM/PWM.h -------------------------------------------------------------------------------- /Example project/Library/system/PWM/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file PWM.H 4 | * @author PineconePi (BTA-16 And xdd_core) 5 | * @version V1.0.0 6 | * @date 20-February-2019 7 | * @brief This document is used for PWM configuration 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | ****************************************************************************** 20 | **/ 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Example project/Library/system/SPI/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Example project/Library/system/SYSTEM(Important documents)/PineconePinano.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/SYSTEM(Important documents)/PineconePinano.h -------------------------------------------------------------------------------- /Example project/Library/system/SYSTEM(Important documents)/system.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/SYSTEM(Important documents)/system.h -------------------------------------------------------------------------------- /Example project/Library/system/TIMER/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file timer.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This document is used for timer configuration 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | *Timer Interrupt Processing Function in timer.c 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example project/Library/system/TIMER/timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/TIMER/timer.c -------------------------------------------------------------------------------- /Example project/Library/system/TIMER/timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/TIMER/timer.h -------------------------------------------------------------------------------- /Example project/Library/system/UART/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file uart.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to configure the serial port 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | *Serial Interrupt Processing Function in uart.c 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example project/Library/system/UART/uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/UART/uart.c -------------------------------------------------------------------------------- /Example project/Library/system/UART/uart.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/UART/uart.h -------------------------------------------------------------------------------- /Example project/Library/system/WatchDog/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file watchdog.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to Configure internal WATCHDOG 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example project/Library/system/WatchDog/watchdog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/WatchDog/watchdog.c -------------------------------------------------------------------------------- /Example project/Library/system/WatchDog/watchdog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/WatchDog/watchdog.h -------------------------------------------------------------------------------- /Example project/Library/system/delay/Delay.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/delay/Delay.c -------------------------------------------------------------------------------- /Example project/Library/system/delay/Delay.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Library/system/delay/Delay.h -------------------------------------------------------------------------------- /Example project/Library/system/delay/README.md: -------------------------------------------------------------------------------- 1 | ### **Delay.h** 2 | /** 3 | ****************************************************************************** 4 | * @file Delay.c 5 | * @author PineconePi 6 | * @version V1.0.0 7 | * @date 20-December-2018 8 | * @brief This file is used to complete software Delay 9 | * @License:GNU General Public License v3.0 10 | ****************************************************************************** 11 | * @attention 12 | *The frequency of crystal oscillator is 24 Mhz 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Example project/Listings/ADC.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/ADC.lst -------------------------------------------------------------------------------- /Example project/Listings/Delay.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/Delay.lst -------------------------------------------------------------------------------- /Example project/Listings/EEPROM.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/EEPROM.lst -------------------------------------------------------------------------------- /Example project/Listings/Example project.m51: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/Example project.m51 -------------------------------------------------------------------------------- /Example project/Listings/HC_SR04.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/HC_SR04.lst -------------------------------------------------------------------------------- /Example project/Listings/PCA.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/PCA.lst -------------------------------------------------------------------------------- /Example project/Listings/PWM.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/PWM.lst -------------------------------------------------------------------------------- /Example project/Listings/Servo.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/Servo.lst -------------------------------------------------------------------------------- /Example project/Listings/digitaltube.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/digitaltube.lst -------------------------------------------------------------------------------- /Example project/Listings/exti.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/exti.lst -------------------------------------------------------------------------------- /Example project/Listings/gpio.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/gpio.lst -------------------------------------------------------------------------------- /Example project/Listings/iic.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/iic.lst -------------------------------------------------------------------------------- /Example project/Listings/main.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/main.lst -------------------------------------------------------------------------------- /Example project/Listings/mp3player.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/mp3player.lst -------------------------------------------------------------------------------- /Example project/Listings/timer.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/timer.lst -------------------------------------------------------------------------------- /Example project/Listings/uart.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/uart.lst -------------------------------------------------------------------------------- /Example project/Listings/watchdog.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/watchdog.lst -------------------------------------------------------------------------------- /Example project/Listings/ws2812b.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Listings/ws2812b.lst -------------------------------------------------------------------------------- /Example project/Objects/ADC.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/ADC.obj -------------------------------------------------------------------------------- /Example project/Objects/Delay.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/Delay.obj -------------------------------------------------------------------------------- /Example project/Objects/EEPROM.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/EEPROM.obj -------------------------------------------------------------------------------- /Example project/Objects/Example project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/Example project -------------------------------------------------------------------------------- /Example project/Objects/Example project.build_log.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/Example project.build_log.htm -------------------------------------------------------------------------------- /Example project/Objects/Example project.lnp: -------------------------------------------------------------------------------- 1 | ".\Objects\main.obj", 2 | ".\Objects\digitaltube.obj", 3 | ".\Objects\HC_SR04.obj", 4 | ".\Objects\mp3player.obj", 5 | ".\Objects\Servo.obj", 6 | ".\Objects\ws2812b.obj", 7 | ".\Objects\ADC.obj", 8 | ".\Objects\Delay.obj", 9 | ".\Objects\EEPROM.obj", 10 | ".\Objects\exti.obj", 11 | ".\Objects\gpio.obj", 12 | ".\Objects\iic.obj", 13 | ".\Objects\PCA.obj", 14 | ".\Objects\PWM.obj", 15 | ".\Objects\timer.obj", 16 | ".\Objects\uart.obj", 17 | ".\Objects\watchdog.obj" 18 | TO ".\Objects\Example project" 19 | PRINT(".\Listings\Example project.m51") RAMSIZE(256) 20 | -------------------------------------------------------------------------------- /Example project/Objects/HC_SR04.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/HC_SR04.obj -------------------------------------------------------------------------------- /Example project/Objects/PCA.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/PCA.obj -------------------------------------------------------------------------------- /Example project/Objects/PWM.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/PWM.obj -------------------------------------------------------------------------------- /Example project/Objects/Servo.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/Servo.obj -------------------------------------------------------------------------------- /Example project/Objects/digitaltube.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/digitaltube.obj -------------------------------------------------------------------------------- /Example project/Objects/exti.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/exti.obj -------------------------------------------------------------------------------- /Example project/Objects/gpio.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/gpio.obj -------------------------------------------------------------------------------- /Example project/Objects/iic.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/iic.obj -------------------------------------------------------------------------------- /Example project/Objects/main.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/main.obj -------------------------------------------------------------------------------- /Example project/Objects/mp3player.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/mp3player.obj -------------------------------------------------------------------------------- /Example project/Objects/timer.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/timer.obj -------------------------------------------------------------------------------- /Example project/Objects/uart.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/uart.obj -------------------------------------------------------------------------------- /Example project/Objects/watchdog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/watchdog.obj -------------------------------------------------------------------------------- /Example project/Objects/ws2812b.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Example project/Objects/ws2812b.obj -------------------------------------------------------------------------------- /Example project/README.md: -------------------------------------------------------------------------------- 1 | # PineconePi Nano([Click to enter the website](http://www.pineconepi.cn),Support:support@pineconepi.cn) 2 | ### **Example project** 3 | 4 | This project imports 51 library functions provided by pinecone pie to help beginners get started quickly. 5 | 6 | 7 | 8 | # Pinecone_Pi_Nano([点我进入官网](http://www.pineconepi.cn),官方交流企鹅群:481227232) 9 | ### **示例工程** 10 | 11 | 这个工程导入了松果派提供的51库函数,帮助新手快速入门 12 | -------------------------------------------------------------------------------- /Example project/main.c: -------------------------------------------------------------------------------- 1 | #include "system.h" 2 | #include "adc.h" 3 | #include "delay.h" 4 | #include "eeprom.h" 5 | #include "exti.h" 6 | #include "gpio.h" 7 | #include "iic.h" 8 | #include "pca.h" 9 | #include "pwm.h" 10 | #include "timer.h" 11 | #include "uart.h" 12 | #include "watchdog.h" 13 | 14 | #include "digitaltube.h" 15 | #include "hc_sr04.h" 16 | #include "mp3player.h" 17 | #include "servo.h" 18 | #include "ws2812b.h" 19 | void main() 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /Library/README.md: -------------------------------------------------------------------------------- 1 | # PineconePi Nano([Click to enter the website](http://www.pineconepi.cn),Support:support@pineconepi.cn) 2 | ### **Library** 3 | 4 | 1. Device: Nano Device Library 5 | 2. System: Nano peripheral Library 6 | 3. PS: If you want to use this library function, be sure to download all header files in the system folder under the system folder 7 | 8 | # Pinecone_Pi_Nano([点我进入官网](http://www.pineconepi.cn),官方交流企鹅群:481227232) 9 | ### **库函数** 10 | 1. device : Nano 器件库 11 | 2. system : Nano 外设库 12 | 3. PS:如果要使用本库函数,请务必下载system文件夹下 system文件夹内的全部头文件 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Library/device/DL-LN33/DL_LN33.c: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file DL_LN33.c 4 | * @author ThreeWater 5 | * @version V1.0.0 6 | * @date 17-June-2019 7 | * @brief This article will be used for driving DL-33N. 8 | * @License:none 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 24 Mhz. 12 | * using Zigbee_Setup() to initialize. 13 | * Using the UART1 to do it. 14 | * Possibly with other libraries. 15 | * Using interrupt4. 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | #include "DL_LN33.h" 24 | static void Usart_Setup(); 25 | static void Usart_Send_Byte(unsigned int Data); 26 | static void Zigbee_CMD(unsigned char *CMD,unsigned int len); 27 | 28 | static unsigned int Zigbee_Count=0; 29 | //Zigbee_CMD 30 | static unsigned char CMD_Zigbee_Restart=0x10;//Don't change anything 31 | static unsigned char CMD_Zigbee_ChangeIP[]={0x11,0x00,0x01};//change IP here. the last two is IP 32 | static unsigned char CMD_Zigbee_Change_NetID[]={0x12,0x00,0x01};//change NetID here 33 | static unsigned char CMD_Zigbee_Change_Channel[]={0x13,0x13};//Change the Channel here 34 | static unsigned char CMD_Zigbee_Change_BRT[]={0x14,0x08};//Don't change anything 35 | 36 | unsigned char UART_busy; 37 | unsigned int Zigbee_Recevie[32]; 38 | //======================================================================== 39 | // name: Uart_Isr() interrupt 4 40 | // descrption:Use it to recevie infomation 41 | // param: none. 42 | // return: none. 43 | // version: VER1.0.0 44 | // date: 17-June-2019 45 | // attention: none 46 | //======================================================================== 47 | void Uart_Isr() interrupt 4 48 | { 49 | if(TI) 50 | { 51 | TI=0; 52 | UART_busy=0; 53 | } 54 | if(RI) 55 | { 56 | Zigbee_Recevie[Zigbee_Count]=SBUF; 57 | if(Zigbee_Recevie[Zigbee_Count]==0xff&&Zigbee_Count==0) 58 | { 59 | Zigbee_Count=1; 60 | return; 61 | } 62 | if(Zigbee_Count!=0) 63 | { 64 | if(Zigbee_Recevie[Zigbee_Count]==0xfe){SBUF='f';Zigbee_Count=0;return;} 65 | Zigbee_Count++; 66 | } 67 | RI=0; 68 | } 69 | 70 | } 71 | 72 | //======================================================================== 73 | // name: Usart_Send_Byte(unsigned char Data) 74 | // descrption: Send message through UART1 75 | // param: data. 76 | // return: none. 77 | // version: VER1.0.0 78 | // date: 17-June-2019 79 | // attention: none 80 | //======================================================================== 81 | void Zigbee_Setup() 82 | { 83 | Usart_Setup(); 84 | Usart_Send_Byte('a'); 85 | Zigbee_CMD(CMD_Zigbee_ChangeIP,sizeof(CMD_Zigbee_ChangeIP)); 86 | Zigbee_CMD(CMD_Zigbee_Change_NetID,sizeof(CMD_Zigbee_Change_NetID)); 87 | Zigbee_CMD(CMD_Zigbee_Change_Channel,sizeof(CMD_Zigbee_Change_Channel)); 88 | //Zigbee_CMD(CMD_Zigbee_Change_BRT,sizeof(CMD_Zigbee_Change_BRT)); 89 | Zigbee_CMD(&CMD_Zigbee_Restart,1); 90 | } 91 | 92 | //======================================================================== 93 | // name:Zigbee_Send(unsigned char *Data,unsigned int len,unsigned short ADDR) 94 | // descrption: Send Information 95 | // param: Data : message that you want to send 96 | // len : lenth of the data 97 | // ADDR: the traget's IP address 98 | // return: none. 99 | // version: VER1.0.0 100 | // date: 17-June-2019 101 | // attention: none 102 | //======================================================================== 103 | void Zigbee_Send(unsigned char *Data,unsigned int len,int ADDR) 104 | { 105 | unsigned char ADDR_H,ADDR_L; 106 | ADDR_H=(unsigned char)(ADDR>>8); 107 | ADDR_L=(unsigned char)(ADDR&0xff); 108 | Usart_Send_Byte(0xfe); 109 | Usart_Send_Byte(0x04+len); 110 | Usart_Send_Byte(0x90); 111 | Usart_Send_Byte(0x90); 112 | Usart_Send_Byte(ADDR_H); 113 | Usart_Send_Byte(ADDR_L); 114 | while(len--) 115 | { 116 | Usart_Send_Byte(*Data++); 117 | } 118 | Usart_Send_Byte(0xff); 119 | } 120 | 121 | //======================================================================== 122 | // name:Zigbee_CMD(unsigned char *CMD;) 123 | // descrption: Setup UART1 124 | // param: CMD: CMD_Control. 125 | // len : lenth of the CMD 126 | // return: none. 127 | // version: VER1.0.0 128 | // date: 17-June-2019 129 | // attention: none 130 | //======================================================================== 131 | static void Zigbee_CMD(unsigned char *CMD,unsigned int len) 132 | { 133 | Usart_Send_Byte(0xfe); 134 | Usart_Send_Byte(0x04+len); 135 | Usart_Send_Byte(0x90); 136 | Usart_Send_Byte(0x21); 137 | Usart_Send_Byte(0x00); 138 | Usart_Send_Byte(0x00); 139 | while(len--) 140 | { 141 | Usart_Send_Byte(*CMD); 142 | CMD++; 143 | } 144 | Usart_Send_Byte(0xff); 145 | } 146 | 147 | 148 | 149 | //======================================================================== 150 | // name: Usart_Send_Byte(unsigned char Data) 151 | // descrption: Send message through UART1 152 | // param: Data. 153 | // return: none. 154 | // version: VER1.0.0 155 | // date: 17-June-2019 156 | // attention: none 157 | //======================================================================== 158 | void Usart_Send_Byte(unsigned char Data) 159 | { 160 | while(UART_busy); 161 | UART_busy=1; 162 | SBUF=Data; 163 | } 164 | 165 | //======================================================================== 166 | // name:Usart_Setup() 167 | // descrption: Setup UART1 168 | // param: none 169 | // return: none. 170 | // version: VER1.0.0 171 | // date: 17-June-2019 172 | // attention: none 173 | //======================================================================== 174 | void Usart_Setup() 175 | { 176 | SCON=0x50; 177 | TMOD=0x00; 178 | TL1=BRT; 179 | TH1=BRT>>8; 180 | TR1=1; 181 | AUXR=0X40; 182 | ES=1; 183 | EA=1; 184 | } 185 | 186 | 187 | 188 | 189 | 190 | -------------------------------------------------------------------------------- /Library/device/DL-LN33/DL_LN33.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file DL_LN33.h 4 | * @author ThreeWater 5 | * @version V1.0.0 6 | * @date 17-June-2019 7 | * @brief This article will be used for driving DL-33N. 8 | * @License:none 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 24 Mhz. 12 | * using Zigbee_Setup() to initialize. 13 | * Using the UART1 to do it. 14 | * Possibly with other libraries. 15 | * Using interrupt4. 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | #ifndef _DL_LN33_ 23 | #define _DL_LN33_ 24 | 25 | #include "system.h" 26 | #include "intrins.h" 27 | 28 | #define FOSC 24000000UL //crystal oscillator 29 | #define BRT (65536-FOSC/115200/4) //brt 30 | 31 | extern unsigned int Zigbee_Recevie[32]; 32 | void Zigbee_Send(unsigned char *Data,unsigned int len,unsigned short ADDR); 33 | void Zigbee_Setup(); 34 | 35 | #endif /* __DL_33N */ 36 | -------------------------------------------------------------------------------- /Library/device/DS3231/DS3231.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/DS3231/DS3231.c -------------------------------------------------------------------------------- /Library/device/DS3231/DS3231.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file DS3231.h 4 | * @author PineconePi(User) 5 | * @version V1.0.0 6 | * @date 17-June-2019 7 | * @brief This document is used to drive DS3231. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 24 Mhz 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | #ifndef _DS3231_H_ 23 | #define _DS3231_H_ 24 | 25 | #include "system.h" 26 | 27 | unsigned char DS3231_Read(unsigned char Address); 28 | void DS3231_Write(unsigned char Address,unsigned char dat); 29 | 30 | #endif -------------------------------------------------------------------------------- /Library/device/DS3231/时钟芯片 DS3231_cn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/DS3231/时钟芯片 DS3231_cn.pdf -------------------------------------------------------------------------------- /Library/device/Digital_Tube(Board)/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file digitaltube.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to set up digital tubes 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Library/device/Digital_Tube(Board)/digitaltube.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/Digital_Tube(Board)/digitaltube.c -------------------------------------------------------------------------------- /Library/device/Digital_Tube(Board)/digitaltube.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/Digital_Tube(Board)/digitaltube.h -------------------------------------------------------------------------------- /Library/device/HC_SR04/HC_SR04.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/HC_SR04/HC_SR04.c -------------------------------------------------------------------------------- /Library/device/HC_SR04/HC_SR04.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/HC_SR04/HC_SR04.h -------------------------------------------------------------------------------- /Library/device/HC_SR04/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file hc_sr04.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This article will be used for driving hc_sr04. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 24 Mhz 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Library/device/LCD_1602/1602A使用说明书.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/LCD_1602/1602A使用说明书.pdf -------------------------------------------------------------------------------- /Library/device/LCD_1602/LCD1602.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/LCD_1602/LCD1602.c -------------------------------------------------------------------------------- /Library/device/LCD_1602/LCD1602.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/LCD_1602/LCD1602.h -------------------------------------------------------------------------------- /Library/device/MP3Player/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file mp3player.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This article will be used for driving MP3 Player. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * include library/system/uart uart.c & uaet.h 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ -------------------------------------------------------------------------------- /Library/device/MP3Player/mp3player.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/MP3Player/mp3player.c -------------------------------------------------------------------------------- /Library/device/MP3Player/mp3player.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/MP3Player/mp3player.h -------------------------------------------------------------------------------- /Library/device/OLED(IIC)/OLED_IIC.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/OLED(IIC)/OLED_IIC.c -------------------------------------------------------------------------------- /Library/device/OLED(IIC)/OLED_IIC.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/OLED(IIC)/OLED_IIC.h -------------------------------------------------------------------------------- /Library/device/SHT20/sht20.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/SHT20/sht20.c -------------------------------------------------------------------------------- /Library/device/SHT20/sht20.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file sht20.h 4 | * @author ThreeWater 5 | * @version V1.0.0 6 | * @date 17-June-2019 7 | * @brief This article will be used for driving sht20. 8 | * @License:none 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 12 Mhz. 12 | * using OLED_IIC_Setup() to initialize. 13 | * 14 | * 15 | * 16 | * 17 | ****************************************************************************** 18 | **/ 19 | #ifndef __SHT20_H 20 | #define __SHT20_H 21 | #include 22 | #include "system.h" 23 | 24 | 25 | typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; 26 | sbit P1_6=P1^6; 27 | sbit P1_7=P1^7; 28 | 29 | #define SCL_H P1_6=1 30 | #define SCL_L P1_6=0 31 | #define SDA_H P1_7=1 32 | #define SDA_L P1_7=0 33 | #define SDA_read P1_7 34 | #define CHECKSUM_ERROR 0x04 35 | 36 | 37 | typedef enum{ 38 | TRIG_T_MEASUREMENT_HM = 0xE3, // command trig. temp meas. hold master 39 | TRIG_RH_MEASUREMENT_HM = 0xE5, // command trig. humidity meas. hold master 40 | TRIG_T_MEASUREMENT_POLL = 0xF3, // command trig. temp meas. no hold master 41 | TRIG_RH_MEASUREMENT_POLL = 0xF5, // command trig. humidity meas. no hold master 42 | USER_REG_W = 0xE6, // command writing user register 43 | USER_REG_R = 0xE7, // command reading user register 44 | SOFT_RESET = 0xFE // command soft reset 45 | }SHT2xCommand; 46 | 47 | typedef enum { 48 | SHT2x_RES_12_14BIT = 0x00, // RH=12bit, T=14bit 49 | SHT2x_RES_8_12BIT = 0x01, // RH= 8bit, T=12bit 50 | SHT2x_RES_10_13BIT = 0x80, // RH=10bit, T=13bit 51 | SHT2x_RES_11_11BIT = 0x81, // RH=11bit, T=11bit 52 | SHT2x_RES_MASK = 0x81 // Mask for res. bits (7,0) in user reg. 53 | } SHT2xResolution; 54 | 55 | typedef enum { 56 | SHT2x_EOB_ON = 0x40, // end of battery 57 | SHT2x_EOB_MASK = 0x40, // Mask for EOB bit(6) in user reg. 58 | } SHT2xEob; 59 | 60 | typedef enum { 61 | SHT2x_HEATER_ON = 0x04, // heater on 62 | SHT2x_HEATER_OFF = 0x00, // heater off 63 | SHT2x_HEATER_MASK = 0x04, // Mask for Heater bit(2) in user reg. 64 | } SHT2xHeater; 65 | 66 | 67 | typedef enum{ 68 | HUMIDITY, 69 | TEMP 70 | }SHT2xMeasureType; 71 | 72 | typedef enum{ 73 | I2C_ADR_W = 128, // sensor I2C address + write bit 74 | I2C_ADR_R = 129 // sensor I2C address + read bit 75 | }I2cHeader; 76 | 77 | float SHT2x_Calc_T(void); 78 | float SHT2x_Calc_RH(void); 79 | 80 | 81 | #endif /* __SHT20_H */ 82 | -------------------------------------------------------------------------------- /Library/device/Servo/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file Servo.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to control Servo 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Library/device/Servo/Servo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/Servo/Servo.c -------------------------------------------------------------------------------- /Library/device/Servo/Servo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/Servo/Servo.h -------------------------------------------------------------------------------- /Library/device/W25QXX/W25Q128.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/W25QXX/W25Q128.c -------------------------------------------------------------------------------- /Library/device/W25QXX/W25Q128.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file W25Q128.h 4 | * @author PineconePi(User) 5 | * @version V1.0.0 6 | * @date 17-June-2019 7 | * @brief This document is used to drive W25Q128. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 24 Mhz 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | #ifndef _W25Q128_H_ 23 | #define _W25Q128_H_ 24 | 25 | #include "system.h" 26 | 27 | #define CS P12 28 | 29 | unsigned char SPI_Send_Reception(unsigned char Dat); 30 | void ReadW25Q128Operation(unsigned long Addr); 31 | void WriteW25Q128Operation(unsigned int Addr); 32 | void EraseW25Q128Operation(unsigned int Addr); 33 | void W25Q128_Write_SR(unsigned char Sr); 34 | void ClearW25Q128WriteEnable(); 35 | 36 | #endif -------------------------------------------------------------------------------- /Library/device/W25QXX/W25X16中文手册.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/W25QXX/W25X16中文手册.pdf -------------------------------------------------------------------------------- /Library/device/WS2812B/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file ws2812b.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This article will be used for driving ws2812b. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 24 Mhz 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Library/device/WS2812B/ws2812b.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/WS2812B/ws2812b.c -------------------------------------------------------------------------------- /Library/device/WS2812B/ws2812b.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/device/WS2812B/ws2812b.h -------------------------------------------------------------------------------- /Library/system/ADC/ADC linear parameters .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/ADC/ADC linear parameters .png -------------------------------------------------------------------------------- /Library/system/ADC/ADC.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/ADC/ADC.c -------------------------------------------------------------------------------- /Library/system/ADC/ADC.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/ADC/ADC.h -------------------------------------------------------------------------------- /Library/system/ADC/High Precision ADC Reference Circuit .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/ADC/High Precision ADC Reference Circuit .png -------------------------------------------------------------------------------- /Library/system/ADC/Low Precision ADC Reference Circuit .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/ADC/Low Precision ADC Reference Circuit .png -------------------------------------------------------------------------------- /Library/system/ADC/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file adc.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to configure ADC 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Library/system/CAN/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Library/system/EEPROM/EEPROM attention .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/EEPROM/EEPROM attention .png -------------------------------------------------------------------------------- /Library/system/EEPROM/EEPROM.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/EEPROM/EEPROM.c -------------------------------------------------------------------------------- /Library/system/EEPROM/EEPROM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/EEPROM/EEPROM.h -------------------------------------------------------------------------------- /Library/system/EEPROM/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file eeprom.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to Configure internal EEPROM 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | *Pinecone Pi NANO: The size of EEPROM is set by STC-ISP 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Library/system/EXTI/Exti.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/EXTI/Exti.h -------------------------------------------------------------------------------- /Library/system/EXTI/README.md: -------------------------------------------------------------------------------- 1 | ### **EXTI** 2 | /** 3 | ****************************************************************************** 4 | * @file exti.h 5 | * @author PineconePi 6 | * @version V1.0.0 7 | * @date 20-December-2018 8 | * @brief This file is used for external interrupt configuration 9 | * @License:GNU General Public License v3.0 10 | ****************************************************************************** 11 | * @attention 12 | 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Library/system/EXTI/exti.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/EXTI/exti.c -------------------------------------------------------------------------------- /Library/system/GPIO/README.md: -------------------------------------------------------------------------------- 1 | ### **GPIO** 2 | /** 3 | ****************************************************************************** 4 | * @file gpio.h 5 | * @author PineconePi 6 | * @version V1.0.0 7 | * @date 20-December-2018 8 | * @brief This document is used for GPIO configuration 9 | * @License:GNU General Public License v3.0 10 | ****************************************************************************** 11 | * @attention 12 | 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Library/system/GPIO/gpio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/GPIO/gpio.c -------------------------------------------------------------------------------- /Library/system/GPIO/gpio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/GPIO/gpio.h -------------------------------------------------------------------------------- /Library/system/IIC/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file iic.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to Configure hardware IIC 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | *To operate IIC-related registers in host mode, P_SW2 = 0x80 is required. 12 | *After settings are completed, you must P_SW2 = 0x00 13 | *The sample program is at the end of the file iic.c 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Library/system/IIC/iic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/IIC/iic.c -------------------------------------------------------------------------------- /Library/system/IIC/iic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/IIC/iic.h -------------------------------------------------------------------------------- /Library/system/PCA/PCA.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/PCA/PCA.c -------------------------------------------------------------------------------- /Library/system/PCA/PCA.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/PCA/PCA.h -------------------------------------------------------------------------------- /Library/system/PCA/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file PCA.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to configure PAC 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Library/system/PWM/PWM.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/PWM/PWM.c -------------------------------------------------------------------------------- /Library/system/PWM/PWM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/PWM/PWM.h -------------------------------------------------------------------------------- /Library/system/PWM/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file PWM.H 4 | * @author PineconePi (BTA-16 And xdd_core) 5 | * @version V1.0.0 6 | * @date 20-February-2019 7 | * @brief This document is used for PWM configuration 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | ****************************************************************************** 20 | **/ 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Library/system/SPI/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Library/system/SYSTEM/PineconePiNano.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/SYSTEM/PineconePiNano.h -------------------------------------------------------------------------------- /Library/system/SYSTEM/System.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/SYSTEM/System.h -------------------------------------------------------------------------------- /Library/system/TIMER/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file timer.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This document is used for timer configuration 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | *Timer Interrupt Processing Function in timer.c 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Library/system/TIMER/timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/TIMER/timer.c -------------------------------------------------------------------------------- /Library/system/TIMER/timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/TIMER/timer.h -------------------------------------------------------------------------------- /Library/system/UART/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file uart.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to configure the serial port 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | *Serial Interrupt Processing Function in uart.c 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Library/system/UART/uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/UART/uart.c -------------------------------------------------------------------------------- /Library/system/UART/uart.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/UART/uart.h -------------------------------------------------------------------------------- /Library/system/WatchDog/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file watchdog.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to Configure internal WATCHDOG 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Library/system/WatchDog/watchdog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/WatchDog/watchdog.c -------------------------------------------------------------------------------- /Library/system/WatchDog/watchdog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/WatchDog/watchdog.h -------------------------------------------------------------------------------- /Library/system/delay/README.md: -------------------------------------------------------------------------------- 1 | ### **Delay.h** 2 | /** 3 | ****************************************************************************** 4 | * @file Delay.c 5 | * @author PineconePi 6 | * @version V1.0.0 7 | * @date 20-December-2018 8 | * @brief This file is used to complete software Delay 9 | * @License:GNU General Public License v3.0 10 | ****************************************************************************** 11 | * @attention 12 | *The frequency of crystal oscillator is 24 Mhz 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Library/system/delay/delay.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/delay/delay.c -------------------------------------------------------------------------------- /Library/system/delay/delay.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Library/system/delay/delay.h -------------------------------------------------------------------------------- /PinCard/PinCard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/PinCard/PinCard.jpg -------------------------------------------------------------------------------- /PinCard/README.md: -------------------------------------------------------------------------------- 1 | # PineconePi Nano([Click to enter the website](http://www.pineconepi.cn),Support:support@pineconepi.cn) 2 | ### **PinCard** 3 | 4 | 1.PinCard.jpg : PinCard For PineconePi Nano 5 | 6 | 7 | # Pinecone_Pi_Nano([点我进入官网](http://www.pineconepi.cn),官方交流企鹅群:481227232) 8 | ### **引脚示意卡** 9 | 10 | 1.PinCard.jpg : 松果派引脚示意卡 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Project/520 Day/Library/README.md: -------------------------------------------------------------------------------- 1 | ### **Library** 2 | 1. device : Nano 器件库 3 | 2. system : Nano 外设库 4 | 3. PS:如果要使用本库函数,请务必下载system文件夹下 system文件夹内的全部头文件 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Project/520 Day/Library/device/HC_SR04/HC_SR04.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/device/HC_SR04/HC_SR04.c -------------------------------------------------------------------------------- /Project/520 Day/Library/device/HC_SR04/HC_SR04.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/device/HC_SR04/HC_SR04.h -------------------------------------------------------------------------------- /Project/520 Day/Library/device/HC_SR04/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file hc_sr04.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This article will be used for driving hc_sr04. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 24 Mhz 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Project/520 Day/Library/device/MP3Player/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file mp3player.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This article will be used for driving MP3 Player. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * include library/system/uart uart.c & uaet.h 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ -------------------------------------------------------------------------------- /Project/520 Day/Library/device/MP3Player/mp3player.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/device/MP3Player/mp3player.c -------------------------------------------------------------------------------- /Project/520 Day/Library/device/MP3Player/mp3player.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/device/MP3Player/mp3player.h -------------------------------------------------------------------------------- /Project/520 Day/Library/device/Servo/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file Servo.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to control Servo 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Project/520 Day/Library/device/Servo/Servo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/device/Servo/Servo.c -------------------------------------------------------------------------------- /Project/520 Day/Library/device/Servo/Servo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/device/Servo/Servo.h -------------------------------------------------------------------------------- /Project/520 Day/Library/device/WS2812B/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file ws2812b.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This article will be used for driving ws2812b. 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * The frequency of crystal oscillator is 24 Mhz 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Project/520 Day/Library/device/WS2812B/ws2812b.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/device/WS2812B/ws2812b.c -------------------------------------------------------------------------------- /Project/520 Day/Library/device/WS2812B/ws2812b.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/device/WS2812B/ws2812b.h -------------------------------------------------------------------------------- /Project/520 Day/Library/device/digital tube/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file digitaltube.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to set up digital tubes 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Project/520 Day/Library/device/digital tube/digitaltube.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/device/digital tube/digitaltube.c -------------------------------------------------------------------------------- /Project/520 Day/Library/device/digital tube/digitaltube.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/device/digital tube/digitaltube.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/ADC/ADC linear parameters .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/ADC/ADC linear parameters .png -------------------------------------------------------------------------------- /Project/520 Day/Library/system/ADC/ADC.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/ADC/ADC.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/ADC/ADC.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/ADC/ADC.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/ADC/High Precision ADC Reference Circuit .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/ADC/High Precision ADC Reference Circuit .png -------------------------------------------------------------------------------- /Project/520 Day/Library/system/ADC/Low Precision ADC Reference Circuit .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/ADC/Low Precision ADC Reference Circuit .png -------------------------------------------------------------------------------- /Project/520 Day/Library/system/ADC/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file adc.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to configure ADC 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/CAN/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/EEPROM/EEPROM attention .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/EEPROM/EEPROM attention .png -------------------------------------------------------------------------------- /Project/520 Day/Library/system/EEPROM/EEPROM.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/EEPROM/EEPROM.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/EEPROM/EEPROM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/EEPROM/EEPROM.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/EEPROM/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file eeprom.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to Configure internal EEPROM 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | *Pinecone Pi NANO: The size of EEPROM is set by STC-ISP 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/EXTI/Exti.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/EXTI/Exti.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/EXTI/README.md: -------------------------------------------------------------------------------- 1 | ### **EXTI** 2 | /** 3 | ****************************************************************************** 4 | * @file exti.h 5 | * @author PineconePi 6 | * @version V1.0.0 7 | * @date 20-December-2018 8 | * @brief This file is used for external interrupt configuration 9 | * @License:GNU General Public License v3.0 10 | ****************************************************************************** 11 | * @attention 12 | 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/EXTI/exti.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/EXTI/exti.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/GPIO/README.md: -------------------------------------------------------------------------------- 1 | ### **GPIO** 2 | /** 3 | ****************************************************************************** 4 | * @file gpio.h 5 | * @author PineconePi 6 | * @version V1.0.0 7 | * @date 20-December-2018 8 | * @brief This document is used for GPIO configuration 9 | * @License:GNU General Public License v3.0 10 | ****************************************************************************** 11 | * @attention 12 | 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/GPIO/gpio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/GPIO/gpio.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/GPIO/gpio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/GPIO/gpio.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/IIC/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file iic.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to Configure hardware IIC 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | *To operate IIC-related registers in host mode, P_SW2 = 0x80 is required. 12 | *After settings are completed, you must P_SW2 = 0x00 13 | *The sample program is at the end of the file iic.c 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/IIC/iic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/IIC/iic.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/IIC/iic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/IIC/iic.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/PCA/PCA.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/PCA/PCA.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/PCA/PCA.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/PCA/PCA.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/PCA/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file PCA.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to configure PAC 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/PWM/PWM.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/PWM/PWM.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/PWM/PWM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/PWM/PWM.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/PWM/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file PWM.H 4 | * @author PineconePi (BTA-16 And xdd_core) 5 | * @version V1.0.0 6 | * @date 20-February-2019 7 | * @brief This document is used for PWM configuration 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | ****************************************************************************** 20 | **/ 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/SPI/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/SYSTEM(Important documents)/PineconePinano.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/SYSTEM(Important documents)/PineconePinano.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/SYSTEM(Important documents)/system.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/SYSTEM(Important documents)/system.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/TIMER/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file timer.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This document is used for timer configuration 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | *Timer Interrupt Processing Function in timer.c 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/TIMER/timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/TIMER/timer.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/TIMER/timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/TIMER/timer.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/UART/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file uart.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to configure the serial port 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | *Serial Interrupt Processing Function in uart.c 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/UART/uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/UART/uart.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/UART/uart.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/UART/uart.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/WatchDog/README.md: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file watchdog.h 4 | * @author PineconePi 5 | * @version V1.0.0 6 | * @date 20-December-2018 7 | * @brief This file is used to Configure internal WATCHDOG 8 | * @License:GNU General Public License v3.0 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | ****************************************************************************** 21 | **/ 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Project/520 Day/Library/system/WatchDog/watchdog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/WatchDog/watchdog.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/WatchDog/watchdog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/WatchDog/watchdog.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/delay/Delay.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/delay/Delay.c -------------------------------------------------------------------------------- /Project/520 Day/Library/system/delay/Delay.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Library/system/delay/Delay.h -------------------------------------------------------------------------------- /Project/520 Day/Library/system/delay/README.md: -------------------------------------------------------------------------------- 1 | ### **Delay.h** 2 | /** 3 | ****************************************************************************** 4 | * @file Delay.c 5 | * @author PineconePi 6 | * @version V1.0.0 7 | * @date 20-December-2018 8 | * @brief This file is used to complete software Delay 9 | * @License:GNU General Public License v3.0 10 | ****************************************************************************** 11 | * @attention 12 | *The frequency of crystal oscillator is 24 Mhz 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Project/520 Day/Listings/ADC.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/ADC.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/Delay.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/Delay.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/EEPROM.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/EEPROM.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/Example project.m51: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/Example project.m51 -------------------------------------------------------------------------------- /Project/520 Day/Listings/HC_SR04.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/HC_SR04.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/PCA.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/PCA.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/PWM.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/PWM.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/Servo.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/Servo.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/digitaltube.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/digitaltube.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/exti.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/exti.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/gpio.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/gpio.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/iic.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/iic.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/main.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/main.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/mp3player.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/mp3player.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/timer.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/timer.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/uart.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/uart.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/watchdog.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/watchdog.lst -------------------------------------------------------------------------------- /Project/520 Day/Listings/ws2812b.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Listings/ws2812b.lst -------------------------------------------------------------------------------- /Project/520 Day/Objects/ADC.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/ADC.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/Delay.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/Delay.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/EEPROM.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/EEPROM.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/Example project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/Example project -------------------------------------------------------------------------------- /Project/520 Day/Objects/Example project.build_log.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/Example project.build_log.htm -------------------------------------------------------------------------------- /Project/520 Day/Objects/Example project.lnp: -------------------------------------------------------------------------------- 1 | ".\Objects\main.obj", 2 | ".\Objects\digitaltube.obj", 3 | ".\Objects\HC_SR04.obj", 4 | ".\Objects\mp3player.obj", 5 | ".\Objects\Servo.obj", 6 | ".\Objects\ws2812b.obj", 7 | ".\Objects\ADC.obj", 8 | ".\Objects\Delay.obj", 9 | ".\Objects\EEPROM.obj", 10 | ".\Objects\exti.obj", 11 | ".\Objects\gpio.obj", 12 | ".\Objects\iic.obj", 13 | ".\Objects\PCA.obj", 14 | ".\Objects\PWM.obj", 15 | ".\Objects\timer.obj", 16 | ".\Objects\uart.obj", 17 | ".\Objects\watchdog.obj" 18 | TO ".\Objects\Example project" 19 | PRINT(".\Listings\Example project.m51") RAMSIZE(256) 20 | -------------------------------------------------------------------------------- /Project/520 Day/Objects/HC_SR04.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/HC_SR04.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/PCA.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/PCA.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/PWM.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/PWM.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/Servo.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/Servo.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/digitaltube.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/digitaltube.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/exti.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/exti.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/gpio.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/gpio.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/iic.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/iic.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/main.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/main.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/mp3player.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/mp3player.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/timer.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/timer.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/uart.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/uart.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/watchdog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/watchdog.obj -------------------------------------------------------------------------------- /Project/520 Day/Objects/ws2812b.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/Objects/ws2812b.obj -------------------------------------------------------------------------------- /Project/520 Day/README.md: -------------------------------------------------------------------------------- 1 | # PineconePi Nano([Click to enter the website](http://www.pineconepi.cn),Support:support@pineconepi.cn) 2 | ### **520 Day(a gift for girlfriend)** 3 | 4 | Author: XDD 5 | Project Description: On May 20, 2019, I encountered very strange problems in reading and writing SDRAM. So I started making a gift for my girlfriend with Nano. (Even if I don't have a girlfriend) 6 | Function 1: Press KEY2 continuously, and the digital tube shows "5", "2", "0" in turn. 7 | Function 2: Continuously press KEY3, 8 LED's sixth, third, the first is lit in turn, corresponding to 5, 2, 0. Serial port 1 sends 520 in turn through baud rate 520. 8 | Function 3: Press KEY4, serial port 1 sends "You are beautiful" through baud rate 520.“ 9 | Function 3: Press KEY5, serial port 1 sends "If you love me, please let me know!" through baud rate 520.“ 10 | 11 | 12 | # Pinecone_Pi_Nano([点我进入官网](http://www.pineconepi.cn),官方交流企鹅群:481227232) 13 | ### **520 Day(一个给女朋友的礼物)** 14 | 15 | 作者:xdd 16 | 项目说明:2019年5月20日,我在SDRAM读写上遇到了非常奇怪的问题。故开始制作用Nano制作一个礼物给女朋友。(即便我没女朋友) 17 | 功能1:连续按下KEY2,数码管依次显示“5”,”2“,”0“。 18 | 功能2:连续按下KEY3,8路LED的 第六个,第三个,第一个依次被点亮,对应 5,2,0。串口1通过波特率520 依次发送520. 19 | 功能3:按下KEY4,串口1通过波特率520,发送”You are beautiful!“ 20 | 功能3:按下KEY5,串口1通过波特率520,发送”If you love me,please let me know!“ 21 | -------------------------------------------------------------------------------- /Project/520 Day/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/520 Day/main.c -------------------------------------------------------------------------------- /Project/ESP8266_IOT_By_Gizwits/Hal/Hal_Usart/hal_uart.c: -------------------------------------------------------------------------------- 1 | //xdd_core于2019-6-18修改本文件以用于在松果派NANO(STC8A8K64S4A12)上运行 2 | #include 3 | #include 4 | #include "gizwits_protocol.h" 5 | 6 | bit B_TI; 7 | bit B_TI2; 8 | /****************串口2发送函数(函数名不变,功能对调了)**********************/ 9 | void UART1_TxByte(unsigned char dat) 10 | { 11 | B_TI2 = 0; //发送标志 12 | S2BUF = dat; //SBUF在这里是一个可写发送缓冲寄存器,把需要发送的数据放在寄存器中 13 | while(!B_TI2); //等待数据传送,传送结束后B_TI2置1 14 | B_TI2 = 0; //发送标志 15 | } 16 | /****************串口1发送函数(函数名不变,功能对调了)**********************/ 17 | void UART2_TxByte(unsigned char dat) 18 | { 19 | B_TI = 0; //发送标志 20 | SBUF = dat; //SBUF在这里是一个可写发送缓冲寄存器,把需要发送的数据放在寄存器中 21 | while(!B_TI); //等待数据传送,传送结束后B_TI置1 22 | B_TI = 0; //发送标志 23 | } 24 | 25 | void PrintString1(unsigned char code *puts) //发送一串字符串 26 | { 27 | for (; *puts != 0; puts++) UART1_TxByte(*puts); //遇到停止符0结束 28 | } 29 | 30 | void PrintString2(unsigned char code *puts) //发送一串字符串 31 | { 32 | for (; *puts != 0; puts++) UART2_TxByte(*puts); //遇到停止符0结束 33 | } 34 | 35 | /****************串口1初始化函数**********************/ 36 | //打印日志 37 | void uart1_init(void)//115200bps@24.000MHz 38 | { 39 | SCON = 0x50; //8位数据,可变波特率 40 | AUXR |= 0x40; //定时器1时钟为Fosc,即1T 41 | AUXR &= 0xFE; //串口1选择定时器1为波特率发生器 42 | TMOD &= 0x0F; //设定定时器1为16位自动重装方式 43 | TL1 = 0xCC; //设定定时初值 44 | TH1 = 0xFF; //设定定时初值 45 | ET1 = 0; //禁止定时器1中断 46 | TR1 = 1; //启动定时器1 47 | } 48 | 49 | /****************串口1中断函数**********************/ 50 | void UART1_RCV (void) interrupt 4 //串口1我们没有用到接收,这里可以删除。 51 | { 52 | if(TI) //等待发送完成 53 | { 54 | TI = 0; //发送中断标志位,必须通过软件清零 55 | B_TI = 1; //数据发送完成的标志 56 | } 57 | } 58 | 59 | 60 | /****************串口2初始化************************/ 61 | void uart2_init(void) //9600bps@24.000MHz 62 | { 63 | S2CON = 0x50; //8位数据,可变波特率 64 | AUXR |= 0x04; //定时器2时钟为Fosc,即1T 65 | T2L = 0x8F; //设定定时初值 66 | T2H = 0xFD; //设定定时初值 67 | AUXR |= 0x10; //启动定时器2 68 | IE2 = 0x01; //使能串口2中断 69 | IE2 |= 1; //允许串口2中断 70 | ES = 1; //串行口中断允许(ES=1允许,ES=0禁止) 71 | EA = 1; //中断总开关 72 | } 73 | 74 | /**************串口2中断函数**********************/ 75 | void UART2_RCV (void) interrupt 8 76 | { 77 | 78 | uint8_t gizbuf; 79 | if(S2CON & S2RI) //等待串口2接收完成 80 | { 81 | CLR_RI2(); //接收中断请求标志位清0 82 | gizbuf = S2BUF; //SBUF在这里是一个接收缓冲寄存器,把接收到数据放到我们的自定义的接收缓冲区 83 | gizPutData(&gizbuf,1);//把接收到的数据放到环形缓冲区 84 | } 85 | if(S2CON & S2TI) //等待串口2发送完成 86 | { 87 | CLR_TI2(); //发送中断请求标志位清0 88 | B_TI2 = 1; //数据发送完成的标志 89 | } 90 | } -------------------------------------------------------------------------------- /Project/ESP8266_IOT_By_Gizwits/Hal/Hal_Usart/hal_uart.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************ 3 | * @file hal_uart.h 4 | * @brief 串口驱动头文件 5 | * @author Gizwits(//xdd_core于2019-6-18修改本文件以用于在松果派NANO(STC8A8K64S4A12)上运行) 6 | * @date 2016-09-05 7 | * @version V03010101 8 | * @copyright Gizwits 9 | * 10 | * @note 机智云.只为智能硬件而生 11 | * Gizwits Smart Cloud for Smart Products 12 | * 链接|增值ֵ|开放|中立|安全|自有|自由|生态 13 | * www.gizwits.com 14 | * 15 | ***********************************************************/ 16 | #ifndef _HAL_UART_H 17 | #define _HAL_UART_H 18 | #include 19 | 20 | /*************** 函数外部引用声明 *****************************/ 21 | void uart1_init(void); 22 | void uart2_init(void); 23 | void UART1_TxByte(unsigned char dat); 24 | void UART2_TxByte(unsigned char dat); 25 | void PrintString1(unsigned char code *puts); 26 | void PrintString2(unsigned char code *puts); 27 | /*************** 用户定义参数 *****************************/ 28 | 29 | #define TI2 (S2CON & 0x02) != 0 //发送中断请求标志位为0时,则TI2为0 30 | #define RI2 (S2CON & 0x01) != 0 //接收中断请求标志位为0时,则RI2为0 31 | #define CLR_TI2() S2CON &= ~0x02 //发送中断请求标志位清0 32 | #define CLR_RI2() S2CON &= ~0x01 //接收中断请求标志位清0 33 | #define FOSC 11059200L //系统频率 34 | #define BAUD1 9600 //串口1波特率 35 | #define BAUD2 115200 //串口2波特率 36 | 37 | /**********************************************************/ 38 | #endif -------------------------------------------------------------------------------- /Project/ESP8266_IOT_By_Gizwits/MCU_STC15xx_User_Guitde_V0.6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/ESP8266_IOT_By_Gizwits/MCU_STC15xx_User_Guitde_V0.6.pdf -------------------------------------------------------------------------------- /Project/ESP8266_IOT_By_Gizwits/README.md: -------------------------------------------------------------------------------- 1 | #松果派NANO移植机智云 GAgent步骤(作者:xdd_core) 2 | ### **Step** 3 | 0. 打开Tools目录,按照烧写教程烧录GAgent至ESP8266 4 | 1. 使用机智云自动生成代码工具生成“STC15F2K60S2”的代码 5 | 2. 用以上文件夹中的文件替换原有文件,并将SYSTEM文件夹添加至工程目录下(Tools目录除外) 6 | 3. 将SYSTEM文件夹添加到INCLUDE PATH 7 | 4. 修改KEIL MCU型号为"STC8A8K64S4A12" 8 | 5. 在main.c中找到定时器初始化代码 9 | ``` C 10 | /**************定时器初始化函数**********************/ 11 | void Timer0_Init(void) 12 | { 13 | TMOD|=0x02; 14 | TL0=0x47; 15 | TH0=0x47; 16 | ET0=1; 17 | TR0=1; 18 | } 19 | ``` 20 | 将其更改为 21 | ``` C 22 | /**************定时器初始化函数**********************/ 23 | void Timer0_Init(void) 24 | { 25 | TMOD|=0x02; 26 | TL0=0x40;//0x47; 27 | TH0=0xa2;//0x47; 28 | ET0=1; 29 | TR0=1; 30 | } 31 | ``` 32 | 6.完成移植 33 | ### **PS** 34 | 1. 晶振频率24Mhz 35 | 2. 平台极限:松果派NANO内部有8K SRAM,理论数据点占用为60%(4.8K)以下是比较适合的。如果数据点太多,而超过这个RAM占用百分比,可能出现串口解析失败,程序跑死(/跑飞)等问题 36 | 3. 串口1打印日志(波特率:115200);串口2连接已经烧录好GAgent的ESP8266(波特率:9600); 37 | 4. 我之前写过一篇关于GAgent的代码逻辑分析见:http://club.gizwits.com/forum.php?mod=viewthread&tid=7217&highlight=%E9%AB%98%E4%B8%AD%E7%94%9F -------------------------------------------------------------------------------- /Project/ESP8266_IOT_By_Gizwits/SYSTEM/PineconePiNano.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/ESP8266_IOT_By_Gizwits/SYSTEM/PineconePiNano.h -------------------------------------------------------------------------------- /Project/ESP8266_IOT_By_Gizwits/SYSTEM/System.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/ESP8266_IOT_By_Gizwits/SYSTEM/System.h -------------------------------------------------------------------------------- /Project/ESP8266_IOT_By_Gizwits/Tools/FLASH_DOWNLOAD/flash_download_tools_v3.6.6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/ESP8266_IOT_By_Gizwits/Tools/FLASH_DOWNLOAD/flash_download_tools_v3.6.6.zip -------------------------------------------------------------------------------- /Project/ESP8266_IOT_By_Gizwits/Tools/GAgent_BIN/GAgent_00ESP826_04020034-1529147544607.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/ESP8266_IOT_By_Gizwits/Tools/GAgent_BIN/GAgent_00ESP826_04020034-1529147544607.rar -------------------------------------------------------------------------------- /Project/ESP8266_IOT_By_Gizwits/Tools/README.md: -------------------------------------------------------------------------------- 1 | #ESP8266 GAgent烧录步骤(作者:xdd_core) 2 | ### **Step** 3 | 4 | 1. 详见烧录指南:http://www.songguo.org/thread-23-1-1.html 5 | 6 | ### **PS** 7 | 1.如有问题可加QQ群:481227232 8 | -------------------------------------------------------------------------------- /Project/ESP8266_IOT_By_Gizwits/User/stdint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/ESP8266_IOT_By_Gizwits/User/stdint.h -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Changelog.txt: -------------------------------------------------------------------------------- 1 | V3.2.0(2018-3-13) 2 | 1、变长产品数据点变化上报函数修复多个数据点同时变化但只上报第一个数据点的问题 3 | 4 | V3.1.0(2017-11-06) 5 | 1、调整目录格式 6 | 2、确认资源使用限制 7 | 8 | V3.0.0(2017-07-21) 9 | 1、适配Gagent 24版本 10 | 2、规范代码格式 11 | 3、修改注释为英文 12 | 13 | V2.1.0 14 | 1、支持变长 15 | 2、增加数据点初始化代码(需要用户根据产品定义赋值) 16 | 17 | V2.0.0 18 | 1、支持加密注册 19 | 20 | V1.1.0 21 | 1、第一版本(定长) 22 | 2、增加ChangLog文件说明 23 | 24 | 25 | V0.1.3(2016-12-29) 26 | 1、增加透传通道支持 27 | 2、增加枚举型数据越界非法处理逻辑 28 | 29 | V0.1.2(2016-11-30) 30 | 1、增加通知模组进入产测模式接口 31 | 2、通知模组进入可绑定状态接口 32 | 3、获取NTP时间接口 33 | 34 | -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Gizwits/gizwits_product.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************ 3 | * @file gizwits_product.c 4 | * @brief Gizwits control protocol processing, and platform-related hardware initialization 5 | * @author Gizwits 6 | * @date 2017-07-19 7 | * @version V03030000 8 | * @copyright Gizwits 9 | * 10 | * @note 机智云.只为智能硬件而生 11 | * Gizwits Smart Cloud for Smart Products 12 | * 链接|增值ֵ|开放|中立|安全|自有|自由|生态 13 | * www.gizwits.com 14 | * 15 | ***********************************************************/ 16 | 17 | #include 18 | #include 19 | #include "Hal_Usart/hal_uart.h" 20 | #include "gizwits_protocol.h" 21 | #include "gizwits_product.h" 22 | #include "common.h" 23 | #include "delay.h" 24 | 25 | /******************** 开/关机|重启引脚 ***************/ 26 | #define Power_on P01 27 | #define Power_off P02 28 | #define Reset P03 29 | /******************** 开/关机|重启标志声明 ***************/ 30 | unsigned char flag_on; 31 | unsigned char flag_off; 32 | unsigned char flag_reset; 33 | 34 | extern uint32_t timerMsCount; 35 | 36 | /** User area the current device state structure*/ 37 | extern dataPoint_t currentDataPoint; 38 | 39 | /**@} */ 40 | /**@name Gizwits User Interface 41 | * @{ 42 | */ 43 | 44 | /** 45 | * @brief Event handling interface 46 | 47 | * Description: 48 | 49 | * 1. Users can customize the changes in WiFi module status 50 | 51 | * 2. Users can add data points in the function of event processing logic, such as calling the relevant hardware peripherals operating interface 52 | 53 | * @param [in] info: event queue 54 | * @param [in] data: protocol data 55 | * @param [in] len: protocol data length 56 | * @return NULL 57 | * @ref gizwits_protocol.h 58 | */ 59 | int8_t gizwitsEventProcess(eventInfo_t *info, uint8_t *gizdata, uint32_t len) 60 | { 61 | uint8_t i = 0; 62 | dataPoint_t *dataPointPtr = (dataPoint_t *)gizdata; 63 | moduleStatusInfo_t *wifiData = (moduleStatusInfo_t *)gizdata; 64 | protocolTime_t *ptime = (protocolTime_t *)gizdata; 65 | 66 | #if MODULE_TYPE 67 | gprsInfo_t *gprsInfoData = (gprsInfo_t *)gizdata; 68 | #else 69 | moduleInfo_t *ptModuleInfo = (moduleInfo_t *)gizdata; 70 | #endif 71 | 72 | if((NULL == info) || (NULL == gizdata)) 73 | { 74 | return -1; 75 | } 76 | 77 | for(i=0; inum; i++) 78 | { 79 | switch(info->event[i]) 80 | { 81 | case EVENT_Power_on: 82 | currentDataPoint.valuePower_on = dataPointPtr->valuePower_on; 83 | GIZWITS_LOG("Evt: EVENT_Power_on %d \n", currentDataPoint.valuePower_on); 84 | if(0x01 == currentDataPoint.valuePower_on) 85 | { 86 | Power_on=0; 87 | User_Delay_Ms(800); 88 | Power_on=1; 89 | flag_on=1; 90 | } 91 | else 92 | { 93 | //user handle 94 | } 95 | break; 96 | case EVENT_Power_off: 97 | currentDataPoint.valuePower_off = dataPointPtr->valuePower_off; 98 | GIZWITS_LOG("Evt: EVENT_Power_off %d \n", currentDataPoint.valuePower_off); 99 | if(0x01 == currentDataPoint.valuePower_off) 100 | { 101 | Power_off=0; 102 | User_Delay_Ms(800); 103 | Power_off=1; 104 | flag_off=1; 105 | } 106 | else 107 | { 108 | //user handle 109 | } 110 | break; 111 | case EVENT_Reset: 112 | currentDataPoint.valueReset = dataPointPtr->valueReset; 113 | GIZWITS_LOG("Evt: EVENT_Reset %d \n", currentDataPoint.valueReset); 114 | if(0x01 == currentDataPoint.valueReset) 115 | { 116 | Reset=0; 117 | User_Delay_Ms(800); 118 | Reset=1; 119 | flag_reset=1; 120 | } 121 | else 122 | { 123 | //user handle 124 | } 125 | break; 126 | 127 | 128 | 129 | 130 | case WIFI_SOFTAP: 131 | break; 132 | case WIFI_AIRLINK: 133 | break; 134 | case WIFI_STATION: 135 | break; 136 | case WIFI_CON_ROUTER: 137 | 138 | break; 139 | case WIFI_DISCON_ROUTER: 140 | 141 | break; 142 | case WIFI_CON_M2M: 143 | 144 | break; 145 | case WIFI_DISCON_M2M: 146 | break; 147 | case WIFI_RSSI: 148 | GIZWITS_LOG("RSSI %d\n", wifiData->rssi); 149 | break; 150 | case TRANSPARENT_DATA: 151 | GIZWITS_LOG("TRANSPARENT_DATA \n"); 152 | //user handle , Fetch data from [data] , size is [len] 153 | break; 154 | case WIFI_NTP: 155 | GIZWITS_LOG("WIFI_NTP : [%d-%d-%d %02d:%02d:%02d][%d] \n",ptime->year,ptime->month,ptime->day,ptime->hour,ptime->minute,ptime->second,ptime->ntp); 156 | break; 157 | case MODULE_INFO: 158 | GIZWITS_LOG("MODULE INFO ...\n"); 159 | #if MODULE_TYPE 160 | GIZWITS_LOG("GPRS MODULE ...\n"); 161 | //Format By gprsInfo_t 162 | #else 163 | GIZWITS_LOG("WIF MODULE ...\n"); 164 | //Format By moduleInfo_t 165 | GIZWITS_LOG("moduleType : [%d] \n",ptModuleInfo->moduleType); 166 | #endif 167 | break; 168 | default: 169 | break; 170 | } 171 | } 172 | 173 | return 0; 174 | } 175 | 176 | /** 177 | * User data acquisition 178 | 179 | * Here users need to achieve in addition to data points other than the collection of data collection, can be self-defined acquisition frequency and design data filtering algorithm 180 | 181 | * @param none 182 | * @return none 183 | */ 184 | void userHandle(void) 185 | { 186 | if(flag_on==1){Power_on=1;flag_on=0;}else{currentDataPoint.valuePower_on=0;} 187 | if(flag_off==1){Power_off=1;flag_off=0;}else{currentDataPoint.valuePower_off=0;} 188 | if(flag_reset==1){Reset=1;flag_reset=0;}else{currentDataPoint.valueReset=0;} 189 | /* 190 | currentDataPoint.valueCPU_DATA = ;//Add Sensor Data Collection 191 | currentDataPoint.valueMemory_DATA = ;//Add Sensor Data Collection 192 | currentDataPoint.valueCPU2_DATA = ;//Add Sensor Data Collection 193 | currentDataPoint.valueCPU3_DATA = ;//Add Sensor Data Collection 194 | currentDataPoint.valueCPU4_DATA = ;//Add Sensor Data Collection 195 | 196 | */ 197 | 198 | } 199 | 200 | /** 201 | * Data point initialization function 202 | 203 | * In the function to complete the initial user-related data 204 | * @param none 205 | * @return none 206 | * @note The developer can add a data point state initialization value within this function 207 | */ 208 | void userInit(void) 209 | { 210 | memset((uint8_t*)¤tDataPoint, 0, sizeof(dataPoint_t)); 211 | 212 | /** Warning !!! DataPoint Variables Init , Must Within The Data Range **/ 213 | /* 214 | currentDataPoint.valuePower_on = ; 215 | currentDataPoint.valuePower_off = ; 216 | currentDataPoint.valueReset = ; 217 | currentDataPoint.valueCPU_DATA = ; 218 | currentDataPoint.valueMemory_DATA = ; 219 | currentDataPoint.valueCPU2_DATA = ; 220 | currentDataPoint.valueCPU3_DATA = ; 221 | currentDataPoint.valueCPU4_DATA = ; 222 | */ 223 | 224 | } 225 | 226 | 227 | /** 228 | * @brief Millisecond timing maintenance function, milliseconds increment, overflow to zero 229 | 230 | * @param none 231 | * @return none 232 | */ 233 | void gizTimerMs(void) 234 | { 235 | timerMsCount++; 236 | } 237 | 238 | /** 239 | * @brief Read millisecond count 240 | 241 | * @param none 242 | * @return millisecond count 243 | */ 244 | uint32_t gizGetTimerCount(void) 245 | { 246 | return timerMsCount; 247 | } 248 | 249 | /** 250 | * @brief MCU reset function 251 | 252 | * @param none 253 | * @return none 254 | */ 255 | void mcuRestart(void) 256 | { 257 | IAP_CONTR &= ~0x40; //软件复位后直接执行用户代码 258 | IAP_CONTR |= 0x20; //软件复位 259 | } 260 | 261 | /**@} */ 262 | 263 | /** 264 | 265 | /** 266 | * @brief Serial port write operation, send data to WiFi module 267 | * 268 | * @param buf : buf address 269 | * @param len : buf length 270 | * 271 | * @return : Return effective data length;-1,return failure 272 | */ 273 | int32_t uartWrite(uint8_t *buf, uint32_t len) 274 | { 275 | uint32_t i = 0; 276 | 277 | if(NULL == buf) 278 | { 279 | return -1; 280 | } 281 | 282 | #ifdef PROTOCOL_DEBUG 283 | GIZWITS_LOG("MCU2WiFi[%lu:%lu]: ", gizGetTimerCount(), len); 284 | for(i=0; i=2 && buf[i] == 0xFF) 289 | { 290 | GIZWITS_LOG("%02x ", 0x55); 291 | } 292 | } 293 | 294 | GIZWITS_LOG("\n"); 295 | #endif 296 | 297 | for(i=0; i=2 && buf[i] == 0xFF) 302 | { 303 | UART1_TxByte(0x55); 304 | } 305 | } 306 | 307 | return len; 308 | } 309 | 310 | 311 | -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Gizwits/gizwits_product.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************ 3 | * @file gizwits_product.h 4 | * @brief Corresponding gizwits_product.c header file (including product hardware and software version definition) 5 | * @author Gizwits 6 | * @date 2017-07-19 7 | * @version V03030000 8 | * @copyright Gizwits 9 | * 10 | * @note 机智云.只为智能硬件而生 11 | * Gizwits Smart Cloud for Smart Products 12 | * 链接|增值ֵ|开放|中立|安全|自有|自由|生态 13 | * www.gizwits.com 14 | * 15 | ***********************************************************/ 16 | #ifndef _GIZWITS_PRODUCT_H 17 | #define _GIZWITS_PRODUCT_H 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | #include 24 | #include "gizwits_protocol.h" 25 | 26 | /** 27 | * @name 日志打印宏定义 28 | * @{ 29 | */ 30 | #define GIZWITS_LOG printf ///<运行日志打印 31 | //#define PROTOCOL_DEBUG ///<协议数据打印 32 | 33 | #ifndef ICACHE_FLASH_ATTR 34 | #define ICACHE_FLASH_ATTR 35 | #endif 36 | 37 | /**@} */ 38 | #define typedef_t typedef 39 | 40 | /** 41 | * MCU软件版本号 42 | */ 43 | #define SOFTWARE_VERSION "03010101" 44 | /** 45 | * MCU硬件版本号 46 | */ 47 | #define HARDWARE_VERSION "03010100" 48 | 49 | #ifndef SOFTWARE_VERSION 50 | #error "no define SOFTWARE_VERSION" 51 | #endif 52 | 53 | #ifndef HARDWARE_VERSION 54 | #error "no define HARDWARE_VERSION" 55 | #endif 56 | 57 | /**@name 设备状态数据上报间隔时间宏定义 58 | * @{ 59 | */ 60 | #define REPORT_TIME_MAX 6000 //6S 61 | /**@} */ 62 | 63 | void mcuRestart(void); 64 | int32_t uartWrite(uint8_t *buf, uint32_t len); 65 | uint32_t gizGetTimerCount(void); 66 | void gizTimerMs(void); 67 | int8_t gizwitsEventProcess(eventInfo_t *info, uint8_t *gizdata, uint32_t len); 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif 74 | -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Hal/Hal_Usart/hal_uart.c: -------------------------------------------------------------------------------- 1 | //xdd_core于2019-6-18修改本文件以用于在松果派NANO(STC8A8K64S4A12)上运行 2 | #include 3 | #include 4 | #include "gizwits_protocol.h" 5 | 6 | bit B_TI; 7 | bit B_TI2; 8 | /****************串口2发送函数(函数名不变,功能对调了)**********************/ 9 | void UART1_TxByte(unsigned char dat) 10 | { 11 | B_TI2 = 0; //发送标志 12 | S2BUF = dat; //SBUF在这里是一个可写发送缓冲寄存器,把需要发送的数据放在寄存器中 13 | while(!B_TI2); //等待数据传送,传送结束后B_TI2置1 14 | B_TI2 = 0; //发送标志 15 | } 16 | /****************串口1发送函数(函数名不变,功能对调了)**********************/ 17 | void UART2_TxByte(unsigned char dat) 18 | { 19 | B_TI = 0; //发送标志 20 | SBUF = dat; //SBUF在这里是一个可写发送缓冲寄存器,把需要发送的数据放在寄存器中 21 | while(!B_TI); //等待数据传送,传送结束后B_TI置1 22 | B_TI = 0; //发送标志 23 | } 24 | 25 | void PrintString1(unsigned char code *puts) //发送一串字符串 26 | { 27 | for (; *puts != 0; puts++) UART1_TxByte(*puts); //遇到停止符0结束 28 | } 29 | 30 | void PrintString2(unsigned char code *puts) //发送一串字符串 31 | { 32 | for (; *puts != 0; puts++) UART2_TxByte(*puts); //遇到停止符0结束 33 | } 34 | 35 | /****************串口1初始化函数**********************/ 36 | //打印日志 37 | void uart1_init(void)//115200bps@24.000MHz 38 | { 39 | SCON = 0x50; //8位数据,可变波特率 40 | AUXR |= 0x40; //定时器1时钟为Fosc,即1T 41 | AUXR &= 0xFE; //串口1选择定时器1为波特率发生器 42 | TMOD &= 0x0F; //设定定时器1为16位自动重装方式 43 | TL1 = 0xCC; //设定定时初值 44 | TH1 = 0xFF; //设定定时初值 45 | ET1 = 0; //禁止定时器1中断 46 | TR1 = 1; //启动定时器1 47 | } 48 | 49 | /****************串口1中断函数**********************/ 50 | void UART1_RCV (void) interrupt 4 //串口1我们没有用到接收,这里可以删除。 51 | { 52 | if(TI) //等待发送完成 53 | { 54 | TI = 0; //发送中断标志位,必须通过软件清零 55 | B_TI = 1; //数据发送完成的标志 56 | } 57 | } 58 | 59 | 60 | /****************串口2初始化************************/ 61 | void uart2_init(void) //9600bps@24.000MHz 62 | { 63 | S2CON = 0x50; //8位数据,可变波特率 64 | AUXR |= 0x04; //定时器2时钟为Fosc,即1T 65 | T2L = 0x8F; //设定定时初值 66 | T2H = 0xFD; //设定定时初值 67 | AUXR |= 0x10; //启动定时器2 68 | IE2 = 0x01; //使能串口2中断 69 | IE2 |= 1; //允许串口2中断 70 | ES = 1; //串行口中断允许(ES=1允许,ES=0禁止) 71 | EA = 1; //中断总开关 72 | } 73 | 74 | /**************串口2中断函数**********************/ 75 | void UART2_RCV (void) interrupt 8 76 | { 77 | 78 | uint8_t gizbuf; 79 | if(S2CON & S2RI) //等待串口2接收完成 80 | { 81 | CLR_RI2(); //接收中断请求标志位清0 82 | gizbuf = S2BUF; //SBUF在这里是一个接收缓冲寄存器,把接收到数据放到我们的自定义的接收缓冲区 83 | gizPutData(&gizbuf,1);//把接收到的数据放到环形缓冲区 84 | } 85 | if(S2CON & S2TI) //等待串口2发送完成 86 | { 87 | CLR_TI2(); //发送中断请求标志位清0 88 | B_TI2 = 1; //数据发送完成的标志 89 | } 90 | } -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Hal/Hal_Usart/hal_uart.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************ 3 | * @file hal_uart.h 4 | * @brief 串口驱动头文件 5 | * @author Gizwits(//xdd_core于2019-6-18修改本文件以用于在松果派NANO(STC8A8K64S4A12)上运行) 6 | * @date 2016-09-05 7 | * @version V03010101 8 | * @copyright Gizwits 9 | * 10 | * @note 机智云.只为智能硬件而生 11 | * Gizwits Smart Cloud for Smart Products 12 | * 链接|增值ֵ|开放|中立|安全|自有|自由|生态 13 | * www.gizwits.com 14 | * 15 | ***********************************************************/ 16 | #ifndef _HAL_UART_H 17 | #define _HAL_UART_H 18 | #include 19 | 20 | /*************** 函数外部引用声明 *****************************/ 21 | void uart1_init(void); 22 | void uart2_init(void); 23 | void UART1_TxByte(unsigned char dat); 24 | void UART2_TxByte(unsigned char dat); 25 | void PrintString1(unsigned char code *puts); 26 | void PrintString2(unsigned char code *puts); 27 | /*************** 用户定义参数 *****************************/ 28 | 29 | #define TI2 (S2CON & 0x02) != 0 //发送中断请求标志位为0时,则TI2为0 30 | #define RI2 (S2CON & 0x01) != 0 //接收中断请求标志位为0时,则RI2为0 31 | #define CLR_TI2() S2CON &= ~0x02 //发送中断请求标志位清0 32 | #define CLR_RI2() S2CON &= ~0x01 //接收中断请求标志位清0 33 | #define FOSC 11059200L //系统频率 34 | #define BAUD1 9600 //串口1波特率 35 | #define BAUD2 115200 //串口2波特率 36 | 37 | /**********************************************************/ 38 | #endif -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Hal/Hal_key/Hal_key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Hal/Hal_key/Hal_key.c -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Hal/Hal_key/Hal_key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Hal/Hal_key/Hal_key.h -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Lib/Delay/Delay.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Lib/Delay/Delay.c -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Lib/Delay/Delay.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Lib/Delay/Delay.h -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Lib/Delay/README.md: -------------------------------------------------------------------------------- 1 | ### **Delay.h** 2 | /** 3 | ****************************************************************************** 4 | * @file Delay.c 5 | * @author PineconePi 6 | * @version V1.0.0 7 | * @date 20-December-2018 8 | * @brief This file is used to complete software Delay 9 | * @License:GNU General Public License v3.0 10 | ****************************************************************************** 11 | * @attention 12 | *The frequency of crystal oscillator is 24 Mhz 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | ****************************************************************************** 22 | **/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/MCU_STC15xx_User_Guitde_V0.6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/MCU_STC15xx_User_Guitde_V0.6.pdf -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/Delay.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/Delay.lst -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/Delay.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/Delay.obj -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/Hal_key.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/Hal_key.lst -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/Hal_key.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/Hal_key.obj -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/STC15F2K60S2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/STC15F2K60S2 -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/STC15F2K60S2.M51: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/STC15F2K60S2.M51 -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/STC15F2K60S2.build_log.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/STC15F2K60S2.build_log.htm -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/STC15F2K60S2.lnp: -------------------------------------------------------------------------------- 1 | ".\main.obj", 2 | ".\gizwits_product.obj", 3 | ".\gizwits_protocol.obj", 4 | ".\hal_uart.obj", 5 | ".\Hal_key.obj", 6 | ".\common.obj", 7 | ".\dataPointTools.obj", 8 | ".\ringbuffer.obj", 9 | ".\Delay.obj" 10 | TO "STC15F2K60S2" 11 | RAMSIZE(256) 12 | -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/STC15F2K60S2.plg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/STC15F2K60S2.plg -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/STC15F2K60S2.uvopt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1.0 5 | 6 |
### uVision Project, (C) Keil Software
7 | 8 | 9 | *.c 10 | *.s*; *.src; *.a* 11 | *.obj 12 | *.lib 13 | *.txt; *.h; *.inc 14 | *.plm 15 | *.cpp 16 | 0 17 | 18 | 19 | 20 | 0 21 | 0 22 | 23 | 24 | 25 | Jetson_Nano_IOT 26 | 0x0 27 | MCS-51 28 | 29 | 35000000 30 | 31 | 1 32 | 1 33 | 1 34 | 0 35 | 0 36 | 37 | 38 | 0 39 | 65535 40 | 0 41 | 0 42 | 0 43 | 44 | 45 | 120 46 | 65 47 | 8 48 | .\ 49 | 50 | 51 | 1 52 | 1 53 | 1 54 | 0 55 | 1 56 | 1 57 | 0 58 | 1 59 | 0 60 | 0 61 | 0 62 | 0 63 | 64 | 65 | 1 66 | 1 67 | 1 68 | 1 69 | 1 70 | 1 71 | 1 72 | 0 73 | 0 74 | 75 | 76 | 1 77 | 0 78 | 1 79 | 80 | 255 81 | 82 | 1 83 | 0 84 | 1 85 | 1 86 | 1 87 | 1 88 | 1 89 | 1 90 | 1 91 | 1 92 | 0 93 | 1 94 | 1 95 | 1 96 | 0 97 | 1 98 | 0 99 | 1 100 | 1 101 | 0 102 | 0 103 | -1 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 0 119 | 120 | 121 | 0 122 | 1 123 | 0 124 | 0 125 | 0 126 | 0 127 | 0 128 | 0 129 | 0 130 | 0 131 | 0 132 | 0 133 | 0 134 | 0 135 | 0 136 | 0 137 | 0 138 | 0 139 | 0 140 | 0 141 | 0 142 | 0 143 | 0 144 | 0 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | User 153 | 1 154 | 0 155 | 0 156 | 0 157 | 158 | 1 159 | 1 160 | 1 161 | 0 162 | 0 163 | 0 164 | 0 165 | ..\User\main.c 166 | main.c 167 | 0 168 | 0 169 | 170 | 171 | 172 | 173 | Gizwits 174 | 1 175 | 0 176 | 0 177 | 0 178 | 179 | 2 180 | 2 181 | 1 182 | 0 183 | 0 184 | 0 185 | 0 186 | ..\Gizwits\gizwits_product.c 187 | gizwits_product.c 188 | 0 189 | 0 190 | 191 | 192 | 2 193 | 3 194 | 1 195 | 0 196 | 0 197 | 0 198 | 0 199 | ..\Gizwits\gizwits_protocol.c 200 | gizwits_protocol.c 201 | 0 202 | 0 203 | 204 | 205 | 206 | 207 | Hal 208 | 1 209 | 0 210 | 0 211 | 0 212 | 213 | 3 214 | 4 215 | 1 216 | 0 217 | 0 218 | 0 219 | 0 220 | ..\Hal\Hal_Usart\hal_uart.c 221 | hal_uart.c 222 | 0 223 | 0 224 | 225 | 226 | 3 227 | 5 228 | 1 229 | 0 230 | 0 231 | 0 232 | 0 233 | ..\Hal\Hal_key\Hal_key.c 234 | Hal_key.c 235 | 0 236 | 0 237 | 238 | 239 | 240 | 241 | Utils 242 | 1 243 | 0 244 | 0 245 | 0 246 | 247 | 4 248 | 6 249 | 1 250 | 0 251 | 0 252 | 0 253 | 0 254 | ..\Utils\common.c 255 | common.c 256 | 0 257 | 0 258 | 259 | 260 | 4 261 | 7 262 | 1 263 | 0 264 | 0 265 | 0 266 | 0 267 | ..\Utils\dataPointTools.c 268 | dataPointTools.c 269 | 0 270 | 0 271 | 272 | 273 | 4 274 | 8 275 | 1 276 | 0 277 | 0 278 | 0 279 | 0 280 | ..\Utils\ringbuffer.c 281 | ringbuffer.c 282 | 0 283 | 0 284 | 285 | 286 | 287 | 288 | Lib 289 | 1 290 | 0 291 | 0 292 | 0 293 | 294 | 5 295 | 9 296 | 5 297 | 0 298 | 0 299 | 0 300 | 0 301 | ..\Lib\Delay\Delay.h 302 | Delay.h 303 | 0 304 | 0 305 | 306 | 307 | 5 308 | 10 309 | 1 310 | 0 311 | 0 312 | 0 313 | 0 314 | ..\Lib\Delay\Delay.c 315 | Delay.c 316 | 0 317 | 0 318 | 319 | 320 | 321 |
322 | -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/common.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/common.lst -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/common.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/common.obj -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/dataPointTools.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/dataPointTools.lst -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/dataPointTools.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/dataPointTools.obj -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/gizwits_product.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/gizwits_product.lst -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/gizwits_product.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/gizwits_product.obj -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/gizwits_protocol.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/gizwits_protocol.lst -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/gizwits_protocol.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/gizwits_protocol.obj -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/hal_uart.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/hal_uart.lst -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/hal_uart.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/hal_uart.obj -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/main.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/main.lst -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/main.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/main.obj -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/ringbuffer.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/ringbuffer.lst -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Project/ringbuffer.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/Project/ringbuffer.obj -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/README.md: -------------------------------------------------------------------------------- 1 | #Jetson NANO 开机棒(IOT)(作者:xdd_core) 2 | ### **PS** 3 | 1. 晶振频率24Mhz 4 | 2. P0^1为开机引脚;P0^2为关机引脚;P0^3为重启引脚(可在main.c和gizwits_product.c中修改) 5 | 3. 支持回传CPU(1-4)的占用率以及内存占用率(4GB) ---待开发 6 | 4. 平台极限:松果派NANO内部有8K SRAM,理论数据点占用为60%(4.8K)以下是比较适合的。如果数据点太多,而超过这个RAM占用百分比,可能出现串口解析失败,程序跑死(/跑飞)等问题 7 | 5. 串口1打印日志(波特率:115200);串口2连接已经烧录好GAgent的ESP8266(波特率:9600); 8 | 6. 我之前写过一篇关于GAgent的代码逻辑分析见:http://club.gizwits.com/forum.php?mod=viewthread&tid=7217&highlight=%E9%AB%98%E4%B8%AD%E7%94%9F -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/SYSTEM/PineconePiNano.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/SYSTEM/PineconePiNano.h -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/SYSTEM/System.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/SYSTEM/System.h -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/User/STC15F2K60S2.H: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/User/STC15F2K60S2.H -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/User/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/User/main.c -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/User/stdint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Project/Jetson_Nano_IOT/User/stdint.h -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Utils/common.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************ 3 | * @file common.c 4 | * @brief Generic tools 5 | * @author Gizwits 6 | * @date 2017-07-19 7 | * @version V03030000 8 | * @copyright Gizwits 9 | * 10 | * @note Gizwits is only for smart hardware 11 | * Gizwits Smart Cloud for Smart Products 12 | * Links | Value Added | Open | Neutral | Safety | Own | Free | Ecology 13 | * www.gizwits.com 14 | * 15 | ***********************************************************/ 16 | #include "common.h" 17 | 18 | /** 19 | * @brief Checksum calculation 20 | * 21 | * @param [in] buf : data 22 | * @param [in] len : data len 23 | * 24 | * @return sum : Checksum 25 | */ 26 | uint8_t ICACHE_FLASH_ATTR gizProtocolSum(uint8_t *buf, uint32_t len) 27 | { 28 | uint8_t sum = 0; 29 | uint32_t i = 0; 30 | 31 | if(buf == NULL || len <= 0) 32 | { 33 | return 0; 34 | } 35 | 36 | for(i=2; i Network byte order 46 | * ntohs Network byte order -> unsigned short 47 | */ 48 | uint16_t ICACHE_FLASH_ATTR exchangeBytes(uint16_t value) 49 | { 50 | /* 51 | uint16_t tmp_value; 52 | uint8_t *index_1, *index_2; 53 | 54 | index_1 = (uint8_t *)&tmp_value; 55 | index_2 = (uint8_t *)&value; 56 | 57 | *index_1 = *(index_2+1); 58 | *(index_1+1) = *index_2; 59 | 60 | return tmp_value; 61 | */ 62 | } 63 | 64 | /** 65 | * htonl unsigned long -> Network byte order 66 | * ntohl Network byte order -> unsigned long 67 | */ 68 | uint32_t ICACHE_FLASH_ATTR exchangeWord(uint32_t value) 69 | { 70 | return ((value & 0x000000FF) << 24) | 71 | ((value & 0x0000FF00) << 8) | 72 | ((value & 0x00FF0000) >> 8) | 73 | ((value & 0xFF000000) >> 24) ; 74 | } 75 | 76 | /** 77 | * @brief Character to binary 78 | * @param[in] A : Character A 79 | * @param[out] B : Character B 80 | * @return : Accounting for one byte of binary data 81 | */ 82 | uint8_t ICACHE_FLASH_ATTR char2hex(char A , char B) 83 | { 84 | uint8_t a ,b = 0; 85 | if(A>='0'&&A<='9') 86 | { 87 | a=A-'0'; 88 | } 89 | else if(A>='A' && A<='F') 90 | { 91 | a=A-'A'+10; 92 | } 93 | else if(A>='a' && A<='f') 94 | { 95 | a=A-'a'+10; 96 | } 97 | 98 | if(B>='0'&&B<='9') 99 | { 100 | b=B-'0'; 101 | } 102 | else if(B>='A' && B<='F') 103 | { 104 | b=B-'A'+10; 105 | } 106 | else if( B>='a' && B<='f') 107 | { 108 | b=B-'a'+10; 109 | } 110 | 111 | return (a<<4)+b; 112 | } 113 | 114 | /** 115 | * @brief checkStringIsNotZero 116 | 117 | * Check String Is Zero ,Or Not 118 | 119 | * @param[in] : String 120 | * @param[out] : 121 | * @return : 0,String Not All Zero 122 | * -1,Input Illegal 123 | * 1,String All Zero 124 | */ 125 | int8_t ICACHE_FLASH_ATTR checkStringIsNotZero(const char *gizdata) 126 | { 127 | uint32_t i = 0; 128 | uint32_t dataLen = 0; 129 | 130 | dataLen = gizStrlen(gizdata); 131 | 132 | if(NULL == gizdata) 133 | { 134 | return -1; 135 | } 136 | 137 | for(i=0; i= 0 ? (iWeek % 7) : (iWeek % 7 + 7); 181 | 182 | return iWeek; 183 | } 184 | 185 | static int32_t ICACHE_FLASH_ATTR isleap(int32_t year) 186 | { 187 | return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0); 188 | } 189 | 190 | static int ICACHE_FLASH_ATTR get_yeardays(int year) 191 | { 192 | if (isleap(year)) 193 | return 366; 194 | return 365; 195 | } 196 | 197 | /** 198 | * @brief Calculate time zone time 199 | 200 | * Will be the time of the current time zone of Greenwich time 201 | 202 | * @param [in] Ntp: time of Greenwich 203 | * 204 | * @return sum : Back to the wall time structure 205 | */ 206 | gizTime_t ICACHE_FLASH_ATTR returnNtp2Wt(uint32_t ntp) 207 | { 208 | gizTime_t tm; 209 | int32_t x; 210 | int32_t i=1970, mons[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; 211 | uint32_t utc = ntp; 212 | 213 | /* utc + timezone */ 214 | utc += TIMEZONE_DEFAULT * ONE_HOUR; 215 | 216 | for(i=1970; utc>0;) 217 | { 218 | x=get_yeardays(i); 219 | if(utc >= x*DAY_SEC) 220 | { 221 | utc -= x*DAY_SEC; 222 | i++; 223 | } 224 | else 225 | { 226 | break; 227 | } 228 | } 229 | tm.year = i; 230 | 231 | for(i=0; utc>0;) 232 | { 233 | if (isleap(tm.year)) 234 | mons[1]=29; 235 | if(utc >= mons[i]*DAY_SEC) 236 | { 237 | utc -= mons[i]*DAY_SEC; 238 | i++; 239 | } 240 | else 241 | { 242 | break; 243 | } 244 | } 245 | mons[1]=28; 246 | tm.month = i+1; 247 | 248 | for(i=1; utc>0;) 249 | { 250 | if(utc >= DAY_SEC) 251 | { 252 | utc -= DAY_SEC; 253 | i++; 254 | } 255 | else 256 | { 257 | break; 258 | } 259 | } 260 | tm.day=i; 261 | 262 | tm.hour = utc/(60*60); 263 | tm.minute = utc%(60*60)/60; 264 | tm.second = utc%60; 265 | tm.ntp = ntp; 266 | 267 | return tm; 268 | } 269 | 270 | /** 271 | * @brief String conversion binary 272 | * @param[in] pbSrc : String 273 | * @param[in] nLen : String length 274 | * @param[out] pbDest : binary 275 | */ 276 | void ICACHE_FLASH_ATTR str2Hex(char *pbDest, char *pbSrc, int32_t nLen) 277 | { 278 | char h1,h2; 279 | char s1,s2; 280 | int32_t i; 281 | 282 | for (i=0; i 9) 289 | s1 -= 7; 290 | 291 | s2 = toupper(h2) - 0x30; 292 | if (s2 > 9) 293 | s2 -= 7; 294 | 295 | pbDest[i] = s1*16 + s2; 296 | } 297 | } 298 | 299 | /** 300 | * @brief Binary conversion string 301 | * @param[in] pbSrc : Binary data 302 | * @param[in] nLen : Binary length 303 | * @param[out] pbDest : Character 304 | */ 305 | void ICACHE_FLASH_ATTR hex2Str(unsigned char *pbDest, unsigned char *pbSrc, int32_t nLen) 306 | { 307 | char ddl,ddh; 308 | int32_t i; 309 | 310 | for (i=0; i 0x39) ddh = ddh + 7; 314 | if (ddl > 0x39) ddl = ddl + 7; 315 | pbDest[i*2] = ddh; 316 | pbDest[i*2+1] = ddl; 317 | } 318 | 319 | pbDest[nLen*2] = '\0'; 320 | } 321 | -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Utils/common.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************ 3 | * @file common.h 4 | * @brief Generic tools 5 | * @author Gizwits 6 | * @date 2017-07-19 7 | * @version V03030000 8 | * @copyright Gizwits 9 | * 10 | * @note Gizwits is only for smart hardware 11 | * Gizwits Smart Cloud for Smart Products 12 | * Links | Value Added | Open | Neutral | Safety | Own | Free | Ecology 13 | * www.gizwits.com 14 | * 15 | ***********************************************************/ 16 | #ifndef _COMMON_H_ 17 | #define _COMMON_H_ 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | #ifndef ICACHE_FLASH_ATTR 31 | #define ICACHE_FLASH_ATTR 32 | #endif 33 | 34 | typedef void (*gizTimerFunc_t)(void *arg ); 35 | 36 | /** 37 | * @name Log print macro definition 38 | * @{ 39 | */ 40 | #define GIZWITS_LOG printf ///= bitLen) 151 | { 152 | return 0; 153 | } 154 | else 155 | { 156 | return 1; 157 | } 158 | } 159 | } 160 | 161 | /** 162 | * @brief bool and enum type data point data compression 163 | * 164 | * @param [in] byteOffset: byte offset 165 | * @param [in] bitOffset: Bit offset 166 | * @param [in] bitLen: occupies the bit length 167 | * @param [out] arrayAddr: array address 168 | * @param [in] srcData: raw data 169 | * 170 | * @return: 0, the correct return; -1, the error returned 171 | */ 172 | int32_t ICACHE_FLASH_ATTR gizVarlenCompressValue(uint32_t bitOffset,uint32_t bitLen,uint8_t *bufAddr,uint32_t srcData) 173 | { 174 | uint8_t highBit = 0; 175 | uint8_t lowBit = 0; 176 | uint8_t ret = 0; 177 | uint32_t byteOffset = 0; 178 | if(NULL == bufAddr) 179 | { 180 | return -1; 181 | } 182 | /* ??bitOffset?? byteOffset*/ 183 | byteOffset = bitOffset/8; 184 | ret = gizAcrossByteJudge(bitOffset,bitLen); 185 | if(0 == ret) 186 | { 187 | bufAddr[byteOffset] |= (((uint8_t)srcData)<<(bitOffset%8)); 188 | } 189 | else if(1 == ret) 190 | { 191 | /* ????????????? */ 192 | highBit = ((uint8_t)srcData)>>(8-bitOffset%8); 193 | lowBit = (uint8_t)srcData & (0xFF >> (8-bitOffset%8)); 194 | bufAddr[byteOffset + 1] |= highBit; 195 | bufAddr[byteOffset] |= (lowBit<<(bitOffset%8)); 196 | } 197 | 198 | return 0; 199 | } 200 | 201 | /** 202 | * @brief bool and enum type data point data decompression 203 | * 204 | * @param [in] byteOffset: byte offset 205 | * @param [in] bitOffset: Bit offset 206 | * @param [in] bitLen: occupies the bit length 207 | * @param [in] arrayAddr: array address 208 | * @param [in] arrayLen: array length 209 | * 210 | * @return destValue: decompression after the results of data, -1 said the error returned 211 | */ 212 | int32_t ICACHE_FLASH_ATTR gizVarlenDecompressionValue(uint32_t bitOffset, uint32_t bitLen, uint8_t * arrayAddr, uint32_t arrayLen) 213 | { 214 | int32_t destValue = 0; 215 | uint8_t ret = 0; 216 | uint32_t byteOffset = 0; 217 | uint8_t highBit = 0 ,lowBit = 0; 218 | uint8_t destBufTemp[50];//TERRY WARNING 219 | 220 | 221 | if(NULL == arrayAddr || 0 == arrayLen) 222 | { 223 | return -1; 224 | } 225 | 226 | byteOffset = bitOffset/8; 227 | memcpy(destBufTemp,arrayAddr,arrayLen); 228 | if(arrayLen > 1)// Judge Byte order conversion 229 | { 230 | if(-1 == gizByteOrderExchange(destBufTemp,arrayLen)) 231 | { 232 | return -1; 233 | } 234 | } 235 | ret = gizAcrossByteJudge(bitOffset,bitLen);//Judge Byte Step 236 | if(0 == ret) 237 | { 238 | destValue |= ((destBufTemp[byteOffset] >> (bitOffset%8)) & (0xff >> (8 - bitLen))); 239 | } 240 | else if(1 == ret) 241 | { 242 | highBit = destBufTemp[byteOffset + 1]& (0xFF >> (8-(bitLen-(8-bitOffset%8)))); 243 | lowBit = destBufTemp[byteOffset]>> (bitOffset%8); 244 | destValue |= (highBit << (8-bitOffset%8)); 245 | destValue |= lowBit; 246 | } 247 | return destValue; 248 | } 249 | 250 | /** 251 | * @brief bool and enum type data point data decompression 252 | * 253 | * @param [in] byteOffset: byte offset 254 | * @param [in] bitOffset: Bit offset 255 | * @param [in] bitLen: occupies the bit length 256 | * @param [in] arrayAddr: array address 257 | * @param [in] arrayLen: array length 258 | * 259 | * @return destValue: decompression after the results of data, -1 said the error returned 260 | */ 261 | int32_t ICACHE_FLASH_ATTR gizStandardDecompressionValue(uint32_t byteOffset,uint32_t bitOffset,uint32_t bitLen,uint8_t *arrayAddr,uint32_t arrayLen) 262 | { 263 | uint8_t ret = 0; 264 | uint8_t highBit = 0 ,lowBit = 0; 265 | uint8_t destBufTemp[50]; 266 | int32_t destValue = 0; 267 | 268 | if(NULL == arrayAddr || 0 == arrayLen) 269 | { 270 | return -1; 271 | } 272 | 273 | memcpy(destBufTemp,arrayAddr,arrayLen); 274 | if(arrayLen > 1)// Judge Byte order conversion 275 | { 276 | if(-1 == gizByteOrderExchange(destBufTemp,arrayLen)) 277 | { 278 | return -1; 279 | } 280 | } 281 | ret = gizAcrossByteJudge(bitOffset,bitLen);//Judge Byte Step 282 | if(0 == ret) 283 | { 284 | destValue |= ((destBufTemp[byteOffset] >> (bitOffset%8)) & (0xff >> (8 - bitLen))); 285 | } 286 | else if(1 == ret) 287 | { 288 | /* Temporarily supports only up to 2 bytes */ 289 | highBit = destBufTemp[byteOffset + 1]& (0xFF >> (8-(bitLen-(8-bitOffset%8)))); 290 | lowBit = destBufTemp[byteOffset]>> (bitOffset%8); 291 | destValue |= (highBit << (8-bitOffset%8)); 292 | destValue |= lowBit; 293 | } 294 | return destValue; 295 | } 296 | 297 | /** 298 | * @brief bool and enum type data point data compression 299 | * 300 | * @param [in] byteOffset: byte offset 301 | * @param [in] bitOffset: Bit offset 302 | * @param [in] bitLen: occupies the bit length 303 | * @param [out] arrayAddr: array address 304 | * @param [in] srcData: raw data 305 | * 306 | * @return: 0, the correct return; -1, the error returned 307 | */ 308 | int32_t ICACHE_FLASH_ATTR gizStandardCompressValue(uint32_t byteOffset,uint32_t bitOffset,uint32_t bitLen,uint8_t *bufAddr,uint32_t srcData) 309 | { 310 | uint8_t highBit = 0; 311 | uint8_t lowBit = 0; 312 | uint8_t ret = 0; 313 | 314 | if(NULL == bufAddr) 315 | { 316 | return -1; 317 | } 318 | 319 | ret = gizAcrossByteJudge(bitOffset,bitLen); 320 | if(0 == ret) 321 | { 322 | bufAddr[byteOffset] |= (((uint8_t)srcData)<<(bitOffset%8)); 323 | } 324 | else if(1 == ret) 325 | { 326 | /* Temporarily support up to two bytes of compression */ 327 | highBit = ((uint8_t)srcData)>>(8-bitOffset%8); 328 | lowBit = (uint8_t)srcData & (0xFF >> (8-bitOffset%8)); 329 | bufAddr[byteOffset + 1] |= highBit; 330 | bufAddr[byteOffset] |= (lowBit<<(bitOffset%8)); 331 | } 332 | 333 | return 0; 334 | } 335 | -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Utils/dataPointTools.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************ 3 | * @file dataPointTools.h 4 | * @brief Data point processing tool set 5 | * @author Gizwits 6 | * @date 2017-07-19 7 | * @version V03030000 8 | * @copyright Gizwits 9 | * 10 | * @note Gizwits is only for smart hardware 11 | * Gizwits Smart Cloud for Smart Products 12 | * Links | Value Added | Open | Neutral | Safety | Own | Free | Ecology 13 | * www.gizwits.com 14 | * 15 | ***********************************************************/ 16 | #ifndef _DATAPOINT_TOOLS_H_ 17 | #define _DATAPOINT_TOOLS_H_ 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | 28 | int8_t gizByteOrderExchange(uint8_t *buf,uint32_t dataLen); 29 | uint32_t gizY2X(uint32_t ratio, int32_t addition, int32_t preValue); 30 | int32_t gizX2Y(uint32_t ratio, int32_t addition, uint32_t preValue); 31 | uint32_t gizY2XFloat(float ratio, float addition, float preValue); 32 | float gizX2YFloat(float ratio, float addition, uint32_t preValue); 33 | uint8_t gizAcrossByteJudge(uint32_t bitOffset,uint32_t bitLen); 34 | int32_t gizVarlenCompressValue(uint32_t bitOffset,uint32_t bitLen,uint8_t *bufAddr,uint32_t srcData); 35 | int32_t gizVarlenDecompressionValue(uint32_t bitOffset,uint32_t bitLen,uint8_t *arrayAddr,uint32_t arrayLen); 36 | int32_t gizStandardDecompressionValue(uint32_t byteOffset,uint32_t bitOffset,uint32_t bitLen,uint8_t *arrayAddr,uint32_t arrayLen); 37 | int32_t gizStandardCompressValue(uint32_t byteOffset,uint32_t bitOffset,uint32_t bitLen,uint8_t *bufAddr,uint32_t srcData); 38 | 39 | #ifdef __cplusplus 40 | } 41 | #endif 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Utils/ringBuffer.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************ 3 | * @file ringbuffer.h 4 | * @brief Loop buffer processing 5 | * @author Gizwits 6 | * @date 2017-07-19 7 | * @version V03030000 8 | * @copyright Gizwits 9 | * 10 | * @note Gizwits is only for smart hardware 11 | * Gizwits Smart Cloud for Smart Products 12 | * Links | Value Added | Open | Neutral | Safety | Own | Free | Ecology 13 | * www.gizwits.com 14 | * 15 | ***********************************************************/ 16 | #ifndef _GIZWITS_RING_BUFFER_H 17 | #define _GIZWITS_RING_BUFFER_H 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | 28 | #define min(a, b) (a)<(b)?(a):(b) ///< Calculate the minimum value 29 | 30 | #pragma pack(1) 31 | typedef struct { 32 | size_t rbCapacity; 33 | uint8_t *rbHead; 34 | uint8_t *rbTail; 35 | uint8_t *rbBuff; 36 | }rb_t; 37 | #pragma pack() 38 | 39 | int8_t rbCreate(rb_t* rb); 40 | int8_t rbDelete(rb_t* rb); 41 | int32_t rbCapacity(rb_t *rb); 42 | int32_t rbCanRead(rb_t *rb); 43 | int32_t rbCanWrite(rb_t *rb); 44 | int32_t rbRead(rb_t *rb, void *gizdata, size_t count); 45 | int32_t rbWrite(rb_t *rb, const void *gizdata, size_t count); 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /Project/Jetson_Nano_IOT/Utils/ringbuffer.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************ 3 | * @file ringbuffer.c 4 | * @brief Loop buffer processing 5 | * @author Gizwits 6 | * @date 2017-07-19 7 | * @version V03030000 8 | * @copyright Gizwits 9 | * 10 | * @note Gizwits is only for smart hardware 11 | * Gizwits Smart Cloud for Smart Products 12 | * Links | Value Added | Open | Neutral | Safety | Own | Free | Ecology 13 | * www.gizwits.com 14 | * 15 | ***********************************************************/ 16 | #include "ringBuffer.h" 17 | #include "common.h" 18 | 19 | int8_t ICACHE_FLASH_ATTR rbCreate(rb_t* rb) 20 | { 21 | if(NULL == rb) 22 | { 23 | return -1; 24 | } 25 | 26 | rb->rbHead = rb->rbBuff; 27 | rb->rbTail = rb->rbBuff; 28 | return 0; 29 | } 30 | 31 | int8_t ICACHE_FLASH_ATTR rbDelete(rb_t* rb) 32 | { 33 | if(NULL == rb) 34 | { 35 | return -1; 36 | } 37 | 38 | rb->rbBuff = NULL; 39 | rb->rbHead = NULL; 40 | rb->rbTail = NULL; 41 | rb->rbCapacity = 0; 42 | return 0; 43 | } 44 | 45 | int32_t ICACHE_FLASH_ATTR rbCapacity(rb_t *rb) 46 | { 47 | if(NULL == rb) 48 | { 49 | return -1; 50 | } 51 | 52 | return rb->rbCapacity; 53 | } 54 | 55 | int32_t ICACHE_FLASH_ATTR rbCanRead(rb_t *rb) 56 | { 57 | if(NULL == rb) 58 | { 59 | return -1; 60 | } 61 | 62 | if (rb->rbHead == rb->rbTail) 63 | { 64 | return 0; 65 | } 66 | 67 | if (rb->rbHead < rb->rbTail) 68 | { 69 | return rb->rbTail - rb->rbHead; 70 | } 71 | 72 | return rbCapacity(rb) - (rb->rbHead - rb->rbTail); 73 | } 74 | 75 | int32_t ICACHE_FLASH_ATTR rbCanWrite(rb_t *rb) 76 | { 77 | if(NULL == rb) 78 | { 79 | return -1; 80 | } 81 | 82 | return rbCapacity(rb) - rbCanRead(rb); 83 | } 84 | 85 | int32_t ICACHE_FLASH_ATTR rbRead(rb_t *rb, void *gizdata, size_t count) 86 | { 87 | int32_t copySz = 0; 88 | 89 | if(NULL == rb) 90 | { 91 | return -1; 92 | } 93 | 94 | if(NULL == gizdata) 95 | { 96 | return -1; 97 | } 98 | 99 | if (rb->rbHead < rb->rbTail) 100 | { 101 | copySz = min(count, rbCanRead(rb)); 102 | memcpy(gizdata, rb->rbHead, copySz); 103 | rb->rbHead += copySz; 104 | return copySz; 105 | } 106 | else 107 | { 108 | if (count < rbCapacity(rb)-(rb->rbHead - rb->rbBuff)) 109 | { 110 | copySz = count; 111 | memcpy(gizdata, rb->rbHead, copySz); 112 | rb->rbHead += copySz; 113 | return copySz; 114 | } 115 | else 116 | { 117 | copySz = rbCapacity(rb) - (rb->rbHead - rb->rbBuff); 118 | memcpy(gizdata, rb->rbHead, copySz); 119 | rb->rbHead = rb->rbBuff; 120 | copySz += rbRead(rb, (char*)gizdata+copySz, count-copySz); 121 | return copySz; 122 | } 123 | } 124 | } 125 | 126 | int32_t ICACHE_FLASH_ATTR rbWrite(rb_t *rb, const void *gizdata, size_t count) 127 | { 128 | int32_t tailAvailSz = 0; 129 | 130 | if((NULL == rb)||(NULL == gizdata)) 131 | { 132 | return -1; 133 | } 134 | 135 | if (count >= rbCanWrite(rb)) 136 | { 137 | return -2; 138 | } 139 | 140 | if (rb->rbHead <= rb->rbTail) 141 | { 142 | tailAvailSz = rbCapacity(rb) - (rb->rbTail - rb->rbBuff); 143 | if (count <= tailAvailSz) 144 | { 145 | memcpy(rb->rbTail, gizdata, count); 146 | rb->rbTail += count; 147 | if (rb->rbTail == rb->rbBuff+rbCapacity(rb)) 148 | { 149 | rb->rbTail = rb->rbBuff; 150 | } 151 | return count; 152 | } 153 | else 154 | { 155 | memcpy(rb->rbTail, gizdata, tailAvailSz); 156 | rb->rbTail = rb->rbBuff; 157 | 158 | return tailAvailSz + rbWrite(rb, (char*)gizdata+tailAvailSz, count-tailAvailSz); 159 | } 160 | } 161 | else 162 | { 163 | memcpy(rb->rbTail, gizdata, count); 164 | rb->rbTail += count; 165 | return count; 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /Project/README.md: -------------------------------------------------------------------------------- 1 | # PineconePi Nano([Click to enter the website](http://www.pineconepi.cn),Support:support@pineconepi.cn) 2 | ### **Project** 3 | 4 | 1. 520 Day : a gift for grilfriend by PineconePi nano 5 | 6 | 7 | # Pinecone_Pi_Nano([点我进入官网](http://www.pineconepi.cn),官方交流企鹅群:481227232) 8 | ### **好玩的工程** 9 | 10 | 1. 520 Day : 一个用松果派Nano制作的在5月20日送女朋友的礼物 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PineconePi Nano([Click to enter the website](http://www.pineconepi.cn),Support:support@pineconepi.cn) 2 | ![Pin Card](https://github.com/pineconepi/Pinecone_Pi_Nano/raw/master/PinCard/PinCard.jpg) 3 | 4 | [![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) 5 | [![GPL Licence](https://badges.frapsoft.com/os/gpl/gpl.png?v=103)](https://opensource.org/licenses/GPL-3.0/) 6 | 7 | PineconePi Nano is a development board that meets all the good ideas of 8051 MCU enthusiasts and creators: low cost, small size, size only 52 mm x 18 mm (DIP40); faster core: ultra-high speed 8051 core (1T), 12 times faster than traditional 8051; wide range of use: working voltage: 2.0V ~ 5.5V (built-in LDO), working temperature: - 40 ~85 (℃); rich peripherals and hardware resources. Source: One-button cold start, 8-channel LED, two SMT digital tubes, onboard Ch330N; 64K Flash, 5-way TIM, 8-way Pwm, 15-way high-speed ADC; easy to use, support C language, assembly, direct insertion breadboard; multi-expansion, a variety of peripheral modules. 8 | 9 | ### **List** 10 | 11 | 1. Chipbook:Chip Datesheet And Driver program And .H file 12 | 2. Document:Teaching documents 13 | 3. Example project:Standard KEIL Project 14 | 4. Library:Rich sharing of peripheral driver Libraries 15 | 5. PinCard:Nano Pin Card 16 | 6. Project:Open Source Projects Used by User with Nano 17 | 7. RTOS:RTX 51 FULL(/tiny) 18 | 8. Schematic diagram and PCB doc:Schematic diagram and PCB doc 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /README_zh.md: -------------------------------------------------------------------------------- 1 | 2 | # Pinecone_Pi_Nano([点我进入官网](http://www.pineconepi.cn),官方交流企鹅群:481227232) 3 | 4 | ![Pin Card](https://github.com/pineconepi/Pinecone_Pi_Nano/raw/master/PinCard/PinCard.jpg) 5 | 6 | [![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) 7 | [![GPL Licence](https://badges.frapsoft.com/os/gpl/gpl.png?v=103)](https://opensource.org/licenses/GPL-3.0/) 8 | 9 | Pinecone Pi nano|松果派Nano是一块满足8051单片机爱好者和创客一切美好设想的开发板:低成本,小体积,尺寸仅52 mm x18 mm(DIP40);更快的内核:超高速8051内核(1T),比传统8051快12倍以上;广泛的使用范围:工作电压:2.0V ~ 5.5V(内置LDO),工作温度:-40℃ ~ 85℃;丰富的外设与硬件资源:一键冷启动,8路LED,两位smt数码管,板载Ch330N;64K Flash,5路TIM,8路Pwm,15路高速ADC;易使用,支持C语言,汇编,直插面包板;多扩展,多种外设模块。 10 | 11 | ### **目录结构** 12 | 13 | 1. Chipbook:Nano使用说明书 And 相关芯片手册 And 驱动程序 And 核心头文件 (建议Clone) 14 | 2. Demo:nano十万种玩法推荐(实例项目,来源于松果社区分享) 15 | 3. Example project:PineconePi提供的标准工程(新手福音) 16 | 4. Library:丰富的外设驱动库分享 17 | 5. Schematic diagram and PCB doc:NANO原理图与封装库 18 | 6. Shell(3D_STL):nano外壳3D打印文件(STL) 19 | 7. RTOS:RTX 51 FULL(/tiny)安装包及使用指南 20 | 8. PinCard:松果派NANO引脚示意卡(打开QQ扫一扫有彩蛋哦!) 21 | -------------------------------------------------------------------------------- /RTOS/README.md: -------------------------------------------------------------------------------- 1 | # PineconePi Nano([Click to enter the website](http://www.pineconepi.cn),Support:support@pineconepi.cn) 2 | ### **RTOS** 3 | 4 | 1. RTX51-Chinese.pdf: RTX 51 RTOS (Chinese) 5 | 2. RTX51 FULL:RTX-51-FULL Install ZIP 6 | 7 | 8 | # Pinecone_Pi_Nano([点我进入官网](http://www.pineconepi.cn),官方交流企鹅群:481227232) 9 | ### **实时操作系统** 10 | 11 | 1. RTX51-Chinese.pdf: RTX 51 RTOS (中文教程) 12 | 2. RTX51 FULL:RTX-51-FULL 安装包 13 | 14 | 15 | -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/RTX51_FULL 7.00.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/RTX51_FULL 7.00.zip -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/Setup.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/Setup.exe -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/Setup.ini: -------------------------------------------------------------------------------- 1 | [Startup] 2 | AppName=RTX51 3 | [Languages] 4 | Default=0x0009 5 | count=1 6 | key0=0x0009 7 | -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/data1.cab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/data1.cab -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/data1.hdr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/data1.hdr -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/data2.cab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/data2.cab -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/data3.cab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/data3.cab -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/ikernel.ex_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/ikernel.ex_ -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/layout.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/layout.bin -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/readme.txt -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/setup.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/setup.bmp -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/setup.inx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/setup.inx -------------------------------------------------------------------------------- /RTOS/RTX51 FULL/wallpap.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51 FULL/wallpap.bmp -------------------------------------------------------------------------------- /RTOS/RTX51-Chinese.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/RTOS/RTX51-Chinese.pdf -------------------------------------------------------------------------------- /Schematic diagram and PCB doc/PineconePiNANO.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Schematic diagram and PCB doc/PineconePiNANO.zip -------------------------------------------------------------------------------- /Schematic diagram and PCB doc/PineconePi_NANO.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PineconePi/Pinecone_Pi_Nano/435a3aa4a0f038fd18001c6cd9a3fad62b71eae3/Schematic diagram and PCB doc/PineconePi_NANO.pdf -------------------------------------------------------------------------------- /Schematic diagram and PCB doc/README.md: -------------------------------------------------------------------------------- 1 | # PineconePi Nano([Click to enter the website](http://www.pineconepi.cn),Support:support@pineconepi.cn) 2 | ### **Principle Diagram and Packaging Library** 3 | 4 | 1. PineconePiNANO.zip : Nano Packaging Library(Altium Designer) 5 | 2. PineconePi_NANO.pdf : Nano Principle Diagram(Altium Designer) 6 | 7 | # Pinecone_Pi_Nano([点我进入官网](http://www.pineconepi.cn),官方交流企鹅群:481227232) 8 | ### **原理图与封装库** 9 | 10 | 1. PineconePiNANO.zip : Nano封装库(Altium Designer) 11 | 2. PineconePi_NANO.pdf : Nano原理图(Altium Designer) 12 | 13 | 14 | 15 | --------------------------------------------------------------------------------