├── .gitignore ├── LICENSE ├── README.md ├── bitmaps ├── Welcome 1.xbm ├── Welcome 2.xmb.XBM ├── bits.zip ├── bits │ ├── eyes_closed.jpg │ ├── eyes_open_1.jpg │ └── eyes_open_2.jpg ├── eyes_closed.XBM ├── eyes_open_1.XBM ├── eyes_open_2.XBM └── welcome_eyes_open.XBM ├── certificates └── GTS Root R4.pem ├── chatGPTuino_turbo ├── bitmaps.h ├── chatGPTuino_turbo.ino ├── credentials.h ├── debug.cfg ├── debug_custom.json └── esp32s2.svd └── dynamic-JSON-doc-size-testing.txt /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Secrets 3 | secrets.h 4 | 5 | # General 6 | .DS_Store 7 | .AppleDouble 8 | .LSOverride 9 | 10 | # Icon must end with two \r 11 | Icon 12 | 13 | 14 | # Thumbnails 15 | ._* 16 | 17 | # Files that might appear in the root of a volume 18 | .DocumentRevisions-V100 19 | .fseventsd 20 | .Spotlight-V100 21 | .TemporaryItems 22 | .Trashes 23 | .VolumeIcon.icns 24 | .com.apple.timemachine.donotpresent 25 | 26 | # Directories potentially created on remote AFP share 27 | .AppleDB 28 | .AppleDesktop 29 | Network Trash Folder 30 | Temporary Items 31 | .apdisk -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Arduino LLC. All right reserved. 2 | Copyright (c) 2023 Open Hardware Design Group LLC All right reserved. 3 | 4 | GNU LESSER GENERAL PUBLIC LICENSE 5 | Version 2.1, February 1999 6 | 7 | Copyright (C) 1991, 1999 Free Software Foundation, Inc. 8 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 9 | Everyone is permitted to copy and distribute verbatim copies 10 | of this license document, but changing it is not allowed. 11 | 12 | [This is the first released version of the Lesser GPL. It also counts 13 | as the successor of the GNU Library Public License, version 2, hence 14 | the version number 2.1.] 15 | 16 | Preamble 17 | 18 | The licenses for most software are designed to take away your 19 | freedom to share and change it. By contrast, the GNU General Public 20 | Licenses are intended to guarantee your freedom to share and change 21 | free software--to make sure the software is free for all its users. 22 | 23 | This license, the Lesser General Public License, applies to some 24 | specially designated software packages--typically libraries--of the 25 | Free Software Foundation and other authors who decide to use it. You 26 | can use it too, but we suggest you first think carefully about whether 27 | this license or the ordinary General Public License is the better 28 | strategy to use in any particular case, based on the explanations below. 29 | 30 | When we speak of free software, we are referring to freedom of use, 31 | not price. Our General Public Licenses are designed to make sure that 32 | you have the freedom to distribute copies of free software (and charge 33 | for this service if you wish); that you receive source code or can get 34 | it if you want it; that you can change the software and use pieces of 35 | it in new free programs; and that you are informed that you can do 36 | these things. 37 | 38 | To protect your rights, we need to make restrictions that forbid 39 | distributors to deny you these rights or to ask you to surrender these 40 | rights. These restrictions translate to certain responsibilities for 41 | you if you distribute copies of the library or if you modify it. 42 | 43 | For example, if you distribute copies of the library, whether gratis 44 | or for a fee, you must give the recipients all the rights that we gave 45 | you. You must make sure that they, too, receive or can get the source 46 | code. If you link other code with the library, you must provide 47 | complete object files to the recipients, so that they can relink them 48 | with the library after making changes to the library and recompiling 49 | it. And you must show them these terms so they know their rights. 50 | 51 | We protect your rights with a two-step method: (1) we copyright the 52 | library, and (2) we offer you this license, which gives you legal 53 | permission to copy, distribute and/or modify the library. 54 | 55 | To protect each distributor, we want to make it very clear that 56 | there is no warranty for the free library. Also, if the library is 57 | modified by someone else and passed on, the recipients should know 58 | that what they have is not the original version, so that the original 59 | author's reputation will not be affected by problems that might be 60 | introduced by others. 61 | 62 | Finally, software patents pose a constant threat to the existence of 63 | any free program. We wish to make sure that a company cannot 64 | effectively restrict the users of a free program by obtaining a 65 | restrictive license from a patent holder. Therefore, we insist that 66 | any patent license obtained for a version of the library must be 67 | consistent with the full freedom of use specified in this license. 68 | 69 | Most GNU software, including some libraries, is covered by the 70 | ordinary GNU General Public License. This license, the GNU Lesser 71 | General Public License, applies to certain designated libraries, and 72 | is quite different from the ordinary General Public License. We use 73 | this license for certain libraries in order to permit linking those 74 | libraries into non-free programs. 75 | 76 | When a program is linked with a library, whether statically or using 77 | a shared library, the combination of the two is legally speaking a 78 | combined work, a derivative of the original library. The ordinary 79 | General Public License therefore permits such linking only if the 80 | entire combination fits its criteria of freedom. The Lesser General 81 | Public License permits more lax criteria for linking other code with 82 | the library. 83 | 84 | We call this license the "Lesser" General Public License because it 85 | does Less to protect the user's freedom than the ordinary General 86 | Public License. It also provides other free software developers Less 87 | of an advantage over competing non-free programs. These disadvantages 88 | are the reason we use the ordinary General Public License for many 89 | libraries. However, the Lesser license provides advantages in certain 90 | special circumstances. 91 | 92 | For example, on rare occasions, there may be a special need to 93 | encourage the widest possible use of a certain library, so that it becomes 94 | a de-facto standard. To achieve this, non-free programs must be 95 | allowed to use the library. A more frequent case is that a free 96 | library does the same job as widely used non-free libraries. In this 97 | case, there is little to gain by limiting the free library to free 98 | software only, so we use the Lesser General Public License. 99 | 100 | In other cases, permission to use a particular library in non-free 101 | programs enables a greater number of people to use a large body of 102 | free software. For example, permission to use the GNU C Library in 103 | non-free programs enables many more people to use the whole GNU 104 | operating system, as well as its variant, the GNU/Linux operating 105 | system. 106 | 107 | Although the Lesser General Public License is Less protective of the 108 | users' freedom, it does ensure that the user of a program that is 109 | linked with the Library has the freedom and the wherewithal to run 110 | that program using a modified version of the Library. 111 | 112 | The precise terms and conditions for copying, distribution and 113 | modification follow. Pay close attention to the difference between a 114 | "work based on the library" and a "work that uses the library". The 115 | former contains code derived from the library, whereas the latter must 116 | be combined with the library in order to run. 117 | 118 | GNU LESSER GENERAL PUBLIC LICENSE 119 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 120 | 121 | 0. This License Agreement applies to any software library or other 122 | program which contains a notice placed by the copyright holder or 123 | other authorized party saying it may be distributed under the terms of 124 | this Lesser General Public License (also called "this License"). 125 | Each licensee is addressed as "you". 126 | 127 | A "library" means a collection of software functions and/or data 128 | prepared so as to be conveniently linked with application programs 129 | (which use some of those functions and data) to form executables. 130 | 131 | The "Library", below, refers to any such software library or work 132 | which has been distributed under these terms. A "work based on the 133 | Library" means either the Library or any derivative work under 134 | copyright law: that is to say, a work containing the Library or a 135 | portion of it, either verbatim or with modifications and/or translated 136 | straightforwardly into another language. (Hereinafter, translation is 137 | included without limitation in the term "modification".) 138 | 139 | "Source code" for a work means the preferred form of the work for 140 | making modifications to it. For a library, complete source code means 141 | all the source code for all modules it contains, plus any associated 142 | interface definition files, plus the scripts used to control compilation 143 | and installation of the library. 144 | 145 | Activities other than copying, distribution and modification are not 146 | covered by this License; they are outside its scope. The act of 147 | running a program using the Library is not restricted, and output from 148 | such a program is covered only if its contents constitute a work based 149 | on the Library (independent of the use of the Library in a tool for 150 | writing it). Whether that is true depends on what the Library does 151 | and what the program that uses the Library does. 152 | 153 | 1. You may copy and distribute verbatim copies of the Library's 154 | complete source code as you receive it, in any medium, provided that 155 | you conspicuously and appropriately publish on each copy an 156 | appropriate copyright notice and disclaimer of warranty; keep intact 157 | all the notices that refer to this License and to the absence of any 158 | warranty; and distribute a copy of this License along with the 159 | Library. 160 | 161 | You may charge a fee for the physical act of transferring a copy, 162 | and you may at your option offer warranty protection in exchange for a 163 | fee. 164 | 165 | 2. You may modify your copy or copies of the Library or any portion 166 | of it, thus forming a work based on the Library, and copy and 167 | distribute such modifications or work under the terms of Section 1 168 | above, provided that you also meet all of these conditions: 169 | 170 | a) The modified work must itself be a software library. 171 | 172 | b) You must cause the files modified to carry prominent notices 173 | stating that you changed the files and the date of any change. 174 | 175 | c) You must cause the whole of the work to be licensed at no 176 | charge to all third parties under the terms of this License. 177 | 178 | d) If a facility in the modified Library refers to a function or a 179 | table of data to be supplied by an application program that uses 180 | the facility, other than as an argument passed when the facility 181 | is invoked, then you must make a good faith effort to ensure that, 182 | in the event an application does not supply such function or 183 | table, the facility still operates, and performs whatever part of 184 | its purpose remains meaningful. 185 | 186 | (For example, a function in a library to compute square roots has 187 | a purpose that is entirely well-defined independent of the 188 | application. Therefore, Subsection 2d requires that any 189 | application-supplied function or table used by this function must 190 | be optional: if the application does not supply it, the square 191 | root function must still compute square roots.) 192 | 193 | These requirements apply to the modified work as a whole. If 194 | identifiable sections of that work are not derived from the Library, 195 | and can be reasonably considered independent and separate works in 196 | themselves, then this License, and its terms, do not apply to those 197 | sections when you distribute them as separate works. But when you 198 | distribute the same sections as part of a whole which is a work based 199 | on the Library, the distribution of the whole must be on the terms of 200 | this License, whose permissions for other licensees extend to the 201 | entire whole, and thus to each and every part regardless of who wrote 202 | it. 203 | 204 | Thus, it is not the intent of this section to claim rights or contest 205 | your rights to work written entirely by you; rather, the intent is to 206 | exercise the right to control the distribution of derivative or 207 | collective works based on the Library. 208 | 209 | In addition, mere aggregation of another work not based on the Library 210 | with the Library (or with a work based on the Library) on a volume of 211 | a storage or distribution medium does not bring the other work under 212 | the scope of this License. 213 | 214 | 3. You may opt to apply the terms of the ordinary GNU General Public 215 | License instead of this License to a given copy of the Library. To do 216 | this, you must alter all the notices that refer to this License, so 217 | that they refer to the ordinary GNU General Public License, version 2, 218 | instead of to this License. (If a newer version than version 2 of the 219 | ordinary GNU General Public License has appeared, then you can specify 220 | that version instead if you wish.) Do not make any other change in 221 | these notices. 222 | 223 | Once this change is made in a given copy, it is irreversible for 224 | that copy, so the ordinary GNU General Public License applies to all 225 | subsequent copies and derivative works made from that copy. 226 | 227 | This option is useful when you wish to copy part of the code of 228 | the Library into a program that is not a library. 229 | 230 | 4. You may copy and distribute the Library (or a portion or 231 | derivative of it, under Section 2) in object code or executable form 232 | under the terms of Sections 1 and 2 above provided that you accompany 233 | it with the complete corresponding machine-readable source code, which 234 | must be distributed under the terms of Sections 1 and 2 above on a 235 | medium customarily used for software interchange. 236 | 237 | If distribution of object code is made by offering access to copy 238 | from a designated place, then offering equivalent access to copy the 239 | source code from the same place satisfies the requirement to 240 | distribute the source code, even though third parties are not 241 | compelled to copy the source along with the object code. 242 | 243 | 5. A program that contains no derivative of any portion of the 244 | Library, but is designed to work with the Library by being compiled or 245 | linked with it, is called a "work that uses the Library". Such a 246 | work, in isolation, is not a derivative work of the Library, and 247 | therefore falls outside the scope of this License. 248 | 249 | However, linking a "work that uses the Library" with the Library 250 | creates an executable that is a derivative of the Library (because it 251 | contains portions of the Library), rather than a "work that uses the 252 | library". The executable is therefore covered by this License. 253 | Section 6 states terms for distribution of such executables. 254 | 255 | When a "work that uses the Library" uses material from a header file 256 | that is part of the Library, the object code for the work may be a 257 | derivative work of the Library even though the source code is not. 258 | Whether this is true is especially significant if the work can be 259 | linked without the Library, or if the work is itself a library. The 260 | threshold for this to be true is not precisely defined by law. 261 | 262 | If such an object file uses only numerical parameters, data 263 | structure layouts and accessors, and small macros and small inline 264 | functions (ten lines or less in length), then the use of the object 265 | file is unrestricted, regardless of whether it is legally a derivative 266 | work. (Executables containing this object code plus portions of the 267 | Library will still fall under Section 6.) 268 | 269 | Otherwise, if the work is a derivative of the Library, you may 270 | distribute the object code for the work under the terms of Section 6. 271 | Any executables containing that work also fall under Section 6, 272 | whether or not they are linked directly with the Library itself. 273 | 274 | 6. As an exception to the Sections above, you may also combine or 275 | link a "work that uses the Library" with the Library to produce a 276 | work containing portions of the Library, and distribute that work 277 | under terms of your choice, provided that the terms permit 278 | modification of the work for the customer's own use and reverse 279 | engineering for debugging such modifications. 280 | 281 | You must give prominent notice with each copy of the work that the 282 | Library is used in it and that the Library and its use are covered by 283 | this License. You must supply a copy of this License. If the work 284 | during execution displays copyright notices, you must include the 285 | copyright notice for the Library among them, as well as a reference 286 | directing the user to the copy of this License. Also, you must do one 287 | of these things: 288 | 289 | a) Accompany the work with the complete corresponding 290 | machine-readable source code for the Library including whatever 291 | changes were used in the work (which must be distributed under 292 | Sections 1 and 2 above); and, if the work is an executable linked 293 | with the Library, with the complete machine-readable "work that 294 | uses the Library", as object code and/or source code, so that the 295 | user can modify the Library and then relink to produce a modified 296 | executable containing the modified Library. (It is understood 297 | that the user who changes the contents of definitions files in the 298 | Library will not necessarily be able to recompile the application 299 | to use the modified definitions.) 300 | 301 | b) Use a suitable shared library mechanism for linking with the 302 | Library. A suitable mechanism is one that (1) uses at run time a 303 | copy of the library already present on the user's computer system, 304 | rather than copying library functions into the executable, and (2) 305 | will operate properly with a modified version of the library, if 306 | the user installs one, as long as the modified version is 307 | interface-compatible with the version that the work was made with. 308 | 309 | c) Accompany the work with a written offer, valid for at 310 | least three years, to give the same user the materials 311 | specified in Subsection 6a, above, for a charge no more 312 | than the cost of performing this distribution. 313 | 314 | d) If distribution of the work is made by offering access to copy 315 | from a designated place, offer equivalent access to copy the above 316 | specified materials from the same place. 317 | 318 | e) Verify that the user has already received a copy of these 319 | materials or that you have already sent this user a copy. 320 | 321 | For an executable, the required form of the "work that uses the 322 | Library" must include any data and utility programs needed for 323 | reproducing the executable from it. However, as a special exception, 324 | the materials to be distributed need not include anything that is 325 | normally distributed (in either source or binary form) with the major 326 | components (compiler, kernel, and so on) of the operating system on 327 | which the executable runs, unless that component itself accompanies 328 | the executable. 329 | 330 | It may happen that this requirement contradicts the license 331 | restrictions of other proprietary libraries that do not normally 332 | accompany the operating system. Such a contradiction means you cannot 333 | use both them and the Library together in an executable that you 334 | distribute. 335 | 336 | 7. You may place library facilities that are a work based on the 337 | Library side-by-side in a single library together with other library 338 | facilities not covered by this License, and distribute such a combined 339 | library, provided that the separate distribution of the work based on 340 | the Library and of the other library facilities is otherwise 341 | permitted, and provided that you do these two things: 342 | 343 | a) Accompany the combined library with a copy of the same work 344 | based on the Library, uncombined with any other library 345 | facilities. This must be distributed under the terms of the 346 | Sections above. 347 | 348 | b) Give prominent notice with the combined library of the fact 349 | that part of it is a work based on the Library, and explaining 350 | where to find the accompanying uncombined form of the same work. 351 | 352 | 8. You may not copy, modify, sublicense, link with, or distribute 353 | the Library except as expressly provided under this License. Any 354 | attempt otherwise to copy, modify, sublicense, link with, or 355 | distribute the Library is void, and will automatically terminate your 356 | rights under this License. However, parties who have received copies, 357 | or rights, from you under this License will not have their licenses 358 | terminated so long as such parties remain in full compliance. 359 | 360 | 9. You are not required to accept this License, since you have not 361 | signed it. However, nothing else grants you permission to modify or 362 | distribute the Library or its derivative works. These actions are 363 | prohibited by law if you do not accept this License. Therefore, by 364 | modifying or distributing the Library (or any work based on the 365 | Library), you indicate your acceptance of this License to do so, and 366 | all its terms and conditions for copying, distributing or modifying 367 | the Library or works based on it. 368 | 369 | 10. Each time you redistribute the Library (or any work based on the 370 | Library), the recipient automatically receives a license from the 371 | original licensor to copy, distribute, link with or modify the Library 372 | subject to these terms and conditions. You may not impose any further 373 | restrictions on the recipients' exercise of the rights granted herein. 374 | You are not responsible for enforcing compliance by third parties with 375 | this License. 376 | 377 | 11. If, as a consequence of a court judgment or allegation of patent 378 | infringement or for any other reason (not limited to patent issues), 379 | conditions are imposed on you (whether by court order, agreement or 380 | otherwise) that contradict the conditions of this License, they do not 381 | excuse you from the conditions of this License. If you cannot 382 | distribute so as to satisfy simultaneously your obligations under this 383 | License and any other pertinent obligations, then as a consequence you 384 | may not distribute the Library at all. For example, if a patent 385 | license would not permit royalty-free redistribution of the Library by 386 | all those who receive copies directly or indirectly through you, then 387 | the only way you could satisfy both it and this License would be to 388 | refrain entirely from distribution of the Library. 389 | 390 | If any portion of this section is held invalid or unenforceable under any 391 | particular circumstance, the balance of the section is intended to apply, 392 | and the section as a whole is intended to apply in other circumstances. 393 | 394 | It is not the purpose of this section to induce you to infringe any 395 | patents or other property right claims or to contest validity of any 396 | such claims; this section has the sole purpose of protecting the 397 | integrity of the free software distribution system which is 398 | implemented by public license practices. Many people have made 399 | generous contributions to the wide range of software distributed 400 | through that system in reliance on consistent application of that 401 | system; it is up to the author/donor to decide if he or she is willing 402 | to distribute software through any other system and a licensee cannot 403 | impose that choice. 404 | 405 | This section is intended to make thoroughly clear what is believed to 406 | be a consequence of the rest of this License. 407 | 408 | 12. If the distribution and/or use of the Library is restricted in 409 | certain countries either by patents or by copyrighted interfaces, the 410 | original copyright holder who places the Library under this License may add 411 | an explicit geographical distribution limitation excluding those countries, 412 | so that distribution is permitted only in or among countries not thus 413 | excluded. In such case, this License incorporates the limitation as if 414 | written in the body of this License. 415 | 416 | 13. The Free Software Foundation may publish revised and/or new 417 | versions of the Lesser General Public License from time to time. 418 | Such new versions will be similar in spirit to the present version, 419 | but may differ in detail to address new problems or concerns. 420 | 421 | Each version is given a distinguishing version number. If the Library 422 | specifies a version number of this License which applies to it and 423 | "any later version", you have the option of following the terms and 424 | conditions either of that version or of any later version published by 425 | the Free Software Foundation. If the Library does not specify a 426 | license version number, you may choose any version ever published by 427 | the Free Software Foundation. 428 | 429 | 14. If you wish to incorporate parts of the Library into other free 430 | programs whose distribution conditions are incompatible with these, 431 | write to the author to ask for permission. For software which is 432 | copyrighted by the Free Software Foundation, write to the Free 433 | Software Foundation; we sometimes make exceptions for this. Our 434 | decision will be guided by the two goals of preserving the free status 435 | of all derivatives of our free software and of promoting the sharing 436 | and reuse of software generally. 437 | 438 | NO WARRANTY 439 | 440 | 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 441 | WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 442 | EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 443 | OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 444 | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 445 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 446 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 447 | LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 448 | THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 449 | 450 | 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 451 | WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 452 | AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 453 | FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 454 | CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 455 | LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 456 | RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 457 | FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 458 | SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 459 | DAMAGES. 460 | 461 | END OF TERMS AND CONDITIONS 462 | 463 | How to Apply These Terms to Your New Libraries 464 | 465 | If you develop a new library, and you want it to be of the greatest 466 | possible use to the public, we recommend making it free software that 467 | everyone can redistribute and change. You can do so by permitting 468 | redistribution under these terms (or, alternatively, under the terms of the 469 | ordinary General Public License). 470 | 471 | To apply these terms, attach the following notices to the library. It is 472 | safest to attach them to the start of each source file to most effectively 473 | convey the exclusion of warranty; and each file should have at least the 474 | "copyright" line and a pointer to where the full notice is found. 475 | 476 | 477 | Copyright (C) 478 | 479 | This library is free software; you can redistribute it and/or 480 | modify it under the terms of the GNU Lesser General Public 481 | License as published by the Free Software Foundation; either 482 | version 2.1 of the License, or (at your option) any later version. 483 | 484 | This library is distributed in the hope that it will be useful, 485 | but WITHOUT ANY WARRANTY; without even the implied warranty of 486 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 487 | Lesser General Public License for more details. 488 | 489 | You should have received a copy of the GNU Lesser General Public 490 | License along with this library; if not, write to the Free Software 491 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 492 | USA 493 | 494 | Also add information on how to contact you by electronic and paper mail. 495 | 496 | You should also get your employer (if you work as a programmer) or your 497 | school, if any, to sign a "copyright disclaimer" for the library, if 498 | necessary. Here is a sample; alter the names: 499 | 500 | Yoyodyne, Inc., hereby disclaims all copyright interest in the 501 | library `Frob' (a library for tweaking knobs) written by James Random 502 | Hacker. 503 | 504 | , 1 April 1990 505 | Ty Coon, President of Vice 506 | 507 | That's all there is to it! 508 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # chatGPTuino 3 | 4 | For more details go to: https://bit.ly/chatGPTuino 5 | 6 | In this exploratory project you’ll interface an Arduino compatible wireless ESP32 with the OpenAI API and create a standalone “retro” chatGPT terminal using a keyboard as the input device and an OLED as the display. 7 | 8 | This is really just the starting point. 9 | 10 | Once you understand how to access and parse the chatGPT API from a wireless microcontroller you open up a ton of new and unexplored possibilities. From autonomously intelligent control of hardware to next level human interface devices. 11 | 12 | What we are doing here is pulling the power of AI out of the cloud and figuring out how to substantiate it. 13 | 14 | __Hardware is eating AI, and you’re the chef.__ 15 | 16 | ![chatGPT Terminal on desk](https://www.programmingelectronics.com/wp-content/uploads/2023/06/chatGPT-Terminal-2-1024x768.jpg) 17 | 18 | ## chatGPT Terminal operation in a nutshell 19 | Here is a quick outline of this simple chatGPT Terminal. 20 | 21 | 1 You type your chat on an old school PS/2 keyboard 22 | 2 An Arduino compatible ESP32 records your keypresses and sends a POST request to the OpenAI API 23 | 3 When the response comes back, you show the text on an OLED. 24 | 4 Repeat. 25 | 26 | Pretty straight forward! 27 | 28 | ## Major components for the chatGPT terminal 29 | 30 | There are 3 major components you’ll need for this project: 31 | 32 | * Microcontroller Dev Board 33 | * PS/2 Keyboard 34 | * OLED 35 | 36 | ### Microcontroller Dev Board 37 | 38 | For this project we’ll use the FeatherS2 - ESP32-S2 by Unexpected Maker as the brains of the project. The ESP32 is a WiFi (and bluetooth) enabled microcontroller, and they have tons of great development boards for them. 39 | 40 | You definitely don’t need this exact model, any ESP32 (or ESP8266) would probably work just fine. 41 | 42 | ### PS/2 Keyboard 43 | 44 | You’ll also need a PS/2 style keyboard - these are old school keyboards that have what is not a very outdated connector type. The reason I went with this style keyboard is because the software to read the incoming keypresses is simple to implement and available in multiple different Arduino libraries. 45 | 46 | ### OLED 47 | 48 | Finally you’ll need an OLED display to show the text in stunning 8 kilopixel resolution! OK, maybe not the most high resolution screen you could dream up, but these 128 x 64 px displays are everywhere. 49 | 50 | You can use different display sizes as long as the pixel ratio stays the same, otherwise you’ll need to adjust the code. I’ve used 0.94”, 1.3”, and 2.42” OLED displays. 51 | 52 | ## The Connections 53 | 54 | This wiring diagram lays out the connections you’ll need between the major components of your chatGPT terminal. This shows using an I2C OLED display, you’ll need to change up the connections for using SPI. 55 | ![chatGPT Terminal Wiring Diagram](https://www.programmingelectronics.com/wp-content/uploads/2023/06/image7.png) 56 | 57 | 58 | ## chatGPT terminal Code 59 | The code flow for this system is not too complicated. 60 | ![chatGPT Terminal State Diagram](https://www.programmingelectronics.com/wp-content/uploads/2023/06/image1.png) 61 | 62 | Basically, the system is always waiting for keyboard input. If the keyboard input is part of a chat message, it saves it to a special message array. If it’s a command key, like SHIFT, or ENTER, then it take the appropriate action. 63 | 64 | When a message is submitted by the user, an API call is made to the chatGPT API to get a response. 65 | 66 | The response is then parsed by the code, and the pertinent information saved to the messages array. 67 | 68 | Finally, it’s displayed on the OLED one word at a time (mimicking the web chatGPT interface), where the user can then use the up and down arrows to scroll through the response. 69 | 70 | And that's pretty much a full cycle. _Read keypresses, hit API, display response._ 71 | 72 | There is also a way to inject system messages that help steer the response from chatGPT. The default system message is “Respond like a pirate”. To change the system message you press escape and you’ll be prompted to type a new one. 73 | 74 | For more details go to: https://bit.ly/chatGPTuino 75 | -------------------------------------------------------------------------------- /bitmaps/Welcome 1.xbm: -------------------------------------------------------------------------------- 1 | #define 1681138870150_width 128 2 | #define 1681138870150_height 64 3 | static char 1681138870150_bits[] = { 4 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 5 | 0xFF, 0xFF, 0xDF, 0xDF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 6 | 0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 0xFF, 0xFF, 0xFF, 0xFF, 0xEF, 0xEF, 0xFF, 0xFD, 0xBF, 88 | 0xFF, 0xFF, 0xBF, 0xDB, 0xBF, 0xBF, 0xBF, 0xBF, 0xEF, 0xFF, 0xFE, 0xFF, 89 | 0xFF, 0xFE, 0x7F, 0xFF, }; 90 | -------------------------------------------------------------------------------- /bitmaps/Welcome 2.xmb.XBM: -------------------------------------------------------------------------------- 1 | #define 1681140146060_width 128 2 | #define 1681140146060_height 64 3 | static char 1681140146060_bits[] = { 4 | 0xDF, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xF7, 0xFB, 0xFF, 0xFF, 0xFF, 5 | 0xEF, 0xFF, 0xFF, 0x7E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 6 | 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFB, 0xFF, 0xFF, 0xFF, 7 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE7, 0xFF, 8 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFD, 0xBF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 9 | 0x7F, 0xFF, 0xFF, 0xE7, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 10 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 11 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 12 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 13 | 0xFF, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x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B, 0xFF, 0xFF, 0xFF, 0xFF, 82 | 0xFF, 0xFF, 0xFF, 0xFF, 0xDF, 0xEF, 0xFA, 0x7F, 0xFF, 0xFF, 0xB7, 0xFF, 83 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 84 | 0xFF, 0x7E, 0xFB, 0xFF, 0x7F, 0x7F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 85 | 0xFF, 0xF7, 0xFF, 0xBF, 0xF5, 0xFF, 0xFF, 0xF5, 0xFF, 0xFF, 0xFF, 0xFF, 86 | 0xEF, 0xF7, 0x7E, 0xFF, 0xBF, 0xEF, 0xB7, 0xFD, 0xDF, 0xFF, 0xFE, 0xFF, 87 | 0xEF, 0xEF, 0xEF, 0xEF, 0xFF, 0xFF, 0xFF, 0xEF, 0xFA, 0xFF, 0xFF, 0xEF, 88 | 0xFF, 0xE7, 0xBF, 0xDF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xDF, 0xFF, 89 | 0xFF, 0xBE, 0xBF, 0xFF, }; 90 | -------------------------------------------------------------------------------- /bitmaps/bits.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programming-electronics-academy/chatGPTuino/5ff543a2fc92f5d1a7d9e1842046f0060faa4eba/bitmaps/bits.zip -------------------------------------------------------------------------------- /bitmaps/bits/eyes_closed.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programming-electronics-academy/chatGPTuino/5ff543a2fc92f5d1a7d9e1842046f0060faa4eba/bitmaps/bits/eyes_closed.jpg -------------------------------------------------------------------------------- /bitmaps/bits/eyes_open_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programming-electronics-academy/chatGPTuino/5ff543a2fc92f5d1a7d9e1842046f0060faa4eba/bitmaps/bits/eyes_open_1.jpg -------------------------------------------------------------------------------- /bitmaps/bits/eyes_open_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programming-electronics-academy/chatGPTuino/5ff543a2fc92f5d1a7d9e1842046f0060faa4eba/bitmaps/bits/eyes_open_2.jpg -------------------------------------------------------------------------------- /bitmaps/eyes_closed.XBM: -------------------------------------------------------------------------------- 1 | #define eyes_closed_width 128 2 | #define eyes_closed_height 64 3 | static unsigned char eyes_closed_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 11 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 12 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 13 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 14 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 15 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 16 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 17 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 18 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 19 | 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 20 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 21 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 22 | 0x00, 0x00, 0xE0, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 23 | 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 24 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 25 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x0F, 0x00, 0x00, 26 | 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 27 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x01, 0x00, 0x00, 0x00, 28 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 29 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 30 | 0x00, 0x00, 0xE0, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 31 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 32 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 33 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x0F, 0x00, 0x00, 34 | 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 35 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x00, 0x00, 0x00, 0x00, 36 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 37 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 38 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 39 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 40 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 41 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 42 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 43 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 44 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 45 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 46 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 47 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 48 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 49 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 52 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 54 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 55 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 56 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 57 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 58 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 59 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 63 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x04, 66 | 0x40, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 67 | 0xEF, 0xFB, 0xF7, 0xEF, 0xFF, 0x77, 0xFF, 0xFE, 0x01, 0x00, 0x00, 0x00, 68 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 69 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3B, 0x5D, 0xA3, 0x73, 70 | 0xB8, 0xA3, 0x79, 0x98, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 71 | 0x71, 0x0C, 0xC6, 0x60, 0x0C, 0xC6, 0x60, 0x8C, 0x01, 0x00, 0x00, 0x00, 72 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 73 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 74 | 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 75 | 0x80, 0x01, 0x30, 0x00, 0x03, 0x18, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 77 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 78 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 79 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 81 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 82 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 83 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 85 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 86 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 87 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 88 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 89 | 0x00, 0x00, 0x00, 0x00, }; 90 | -------------------------------------------------------------------------------- /bitmaps/eyes_open_1.XBM: -------------------------------------------------------------------------------- 1 | #define eyes_open_1_width 128 2 | #define eyes_open_1_height 64 3 | static unsigned char eyes_open_1_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 11 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 12 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 13 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 14 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 15 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 16 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 17 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 18 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 19 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x00, 0x00, 0x00, 0x00, 20 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 21 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x06, 0x00, 0x00, 22 | 0x00, 0x00, 0x60, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 23 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x30, 0xC0, 0x01, 0x00, 0x00, 0x00, 24 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0x80, 25 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 26 | 0x00, 0x00, 0x70, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 27 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x20, 0xC0, 0x01, 0x00, 0x00, 0x00, 28 | 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0xC0, 29 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 30 | 0x00, 0x00, 0x20, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 31 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x30, 0xC0, 0x01, 0x00, 0x00, 0x00, 32 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0x80, 33 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 34 | 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 35 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x00, 0x00, 0x00, 0x00, 36 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 37 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 38 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 39 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 40 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 41 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 42 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 43 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 44 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 45 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 46 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 47 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 48 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 49 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 52 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 54 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 55 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 56 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 57 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 58 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 59 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 63 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x18, 0xC0, 66 | 0x00, 0x0C, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 67 | 0xEF, 0xFB, 0xFF, 0xFF, 0xFB, 0xBF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 68 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 69 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7B, 0x16, 0xE7, 0x39, 70 | 0xA6, 0xE3, 0x71, 0x8E, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 71 | 0x19, 0x8C, 0xC1, 0x18, 0x8C, 0xC1, 0x38, 0x98, 0x01, 0x00, 0x00, 0x00, 72 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 73 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 74 | 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 75 | 0x06, 0x21, 0x00, 0x02, 0x30, 0x00, 0x06, 0x60, 0x00, 0x00, 0x00, 0x00, 76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 77 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 78 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 79 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 81 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 82 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 83 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 85 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 86 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 87 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 88 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 89 | 0x00, 0x00, 0x00, 0x00, }; 90 | -------------------------------------------------------------------------------- /bitmaps/eyes_open_2.XBM: -------------------------------------------------------------------------------- 1 | #define eyes_open_2_width 128 2 | #define eyes_open_2_height 64 3 | static unsigned char eyes_open_2_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 11 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 12 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 13 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 14 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 15 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 16 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 17 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 18 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 19 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x00, 0x00, 0x00, 0x00, 20 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 21 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x06, 0x00, 0x00, 22 | 0x00, 0x00, 0x60, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 23 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x30, 0xC0, 0x01, 0x00, 0x00, 0x00, 24 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0x80, 25 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 26 | 0x00, 0x00, 0x70, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 27 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x20, 0xC0, 0x01, 0x00, 0x00, 0x00, 28 | 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0xC0, 29 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 30 | 0x00, 0x00, 0x20, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 31 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x30, 0xC0, 0x01, 0x00, 0x00, 0x00, 32 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0x80, 33 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 34 | 0x00, 0x00, 0xF0, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 35 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x01, 0x00, 0x00, 0x00, 36 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 37 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 38 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 39 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 40 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 41 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 42 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 43 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 44 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 45 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 46 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 47 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 48 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 49 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 52 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 54 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 55 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 56 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 57 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 58 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 59 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 63 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x20, 0x00, 0x04, 66 | 0x40, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 67 | 0xEF, 0xFF, 0xFE, 0xFF, 0xFF, 0xBE, 0xFF, 0xFE, 0x01, 0x00, 0x00, 0x00, 68 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 69 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x9D, 0xA3, 0x7B, 70 | 0xB8, 0xA3, 0x79, 0xBA, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 71 | 0x71, 0x0C, 0xC7, 0x60, 0x0C, 0xC6, 0x60, 0x8C, 0x01, 0x00, 0x00, 0x00, 72 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 73 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 74 | 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 75 | 0x80, 0x01, 0x30, 0x00, 0x03, 0x18, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 77 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 78 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 79 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 81 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 82 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 83 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 85 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 86 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 87 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 88 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 89 | 0x00, 0x00, 0x00, 0x00, }; 90 | -------------------------------------------------------------------------------- /bitmaps/welcome_eyes_open.XBM: -------------------------------------------------------------------------------- 1 | #define 1681140834476_width 128 2 | #define 1681140834476_height 64 3 | static char 1681140834476_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x0A, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0xE7, 0x3E, 9 | 0x10, 0x00, 0x08, 0x00, 0x80, 0xCF, 0x08, 0x21, 0x45, 0x80, 0x11, 0x40, 10 | 0x86, 0x38, 0x3D, 0x0D, 0x28, 0x42, 0x08, 0x00, 0x00, 0xAF, 0xD8, 0xBB, 11 | 0xEF, 0xC0, 0x7B, 0xE0, 0x9C, 0xBB, 0xA1, 0xC9, 0x32, 0xEF, 0x08, 0x00, 12 | 0x00, 0xBF, 0x49, 0xC8, 0xEE, 0x81, 0x48, 0x20, 0x96, 0x93, 0xED, 0x48, 13 | 0x32, 0xA9, 0x09, 0x00, 0x00, 0xBF, 0xC8, 0xC8, 0xBB, 0x80, 0x49, 0xB0, 14 | 0xF6, 0x13, 0x39, 0xC8, 0x22, 0xBD, 0x09, 0x00, 0x00, 0xED, 0xBE, 0xFB, 15 | 0xEB, 0x80, 0x7B, 0xE0, 0xD6, 0x73, 0x2F, 0xC8, 0x7B, 0xE9, 0x08, 0x00, 16 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 17 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 18 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 19 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 20 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 21 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 22 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 23 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 24 | 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 25 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x01, 0x00, 0x00, 26 | 0x00, 0x00, 0x80, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 27 | 0x83, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x00, 0x00, 0x00, 0x00, 28 | 0x00, 0x00, 0x00, 0x00, 0x82, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 29 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x83, 0x01, 0x00, 0x00, 30 | 0x00, 0x00, 0x80, 0xC1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 31 | 0x83, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x00, 0x00, 0x00, 0x00, 32 | 0x00, 0x00, 0x00, 0x00, 0x83, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC1, 33 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xDB, 0x01, 0x00, 0x00, 34 | 0x00, 0x00, 0x80, 0x75, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 35 | 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x7F, 0x00, 0x00, 0x00, 0x00, 36 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 37 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 38 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 39 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 40 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 41 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 42 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 43 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 44 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 45 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 46 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 47 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 48 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 49 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 52 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 54 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 55 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 56 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 57 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 58 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 59 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 63 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 66 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 67 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 68 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 69 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 70 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 71 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 72 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 73 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6B, 0xAD, 0x5B, 0xAD, 74 | 0xD5, 0x5B, 0xAD, 0xD5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 75 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03, 0x00, 0x00, 0x00, 76 | 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 77 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 78 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 79 | 0xFF, 0xFE, 0xFF, 0xFE, 0xFF, 0xBF, 0xEF, 0xFF, 0x03, 0x00, 0x00, 0x00, 80 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 81 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 82 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 83 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 85 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 86 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 87 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 88 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 89 | 0x00, 0x00, 0x00, 0x00, }; 90 | -------------------------------------------------------------------------------- /certificates/GTS Root R4.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICCTCCAY6gAwIBAgINAgPlwGjvYxqccpBQUjAKBggqhkjOPQQDAzBHMQswCQYD 3 | VQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIG 4 | A1UEAxMLR1RTIFJvb3QgUjQwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAw 5 | WjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2Vz 6 | IExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQwdjAQBgcqhkjOPQIBBgUrgQQAIgNi 7 | AATzdHOnaItgrkO4NcWBMHtLSZ37wWHO5t5GvWvVYRg1rkDdc/eJkTBa6zzuhXyi 8 | QHY7qca4R9gq55KRanPpsXI5nymfopjTX15YhmUPoYRlBtHci8nHc8iMai/lxKvR 9 | HYqjQjBAMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW 10 | BBSATNbrdP9JNqPV2Py1PsVq8JQdjDAKBggqhkjOPQQDAwNpADBmAjEA6ED/g94D 11 | 9J+uHXqnLrmvT/aDHQ4thQEd0dlq7A/Cr8deVl5c1RxYIigL9zC2L7F8AjEA8GE8 12 | p/SgguMh1YQdc4acLa/KNJvxn7kjNuK8YAOdgLOaVsjh4rsUecrNIdSUtUlD 13 | -----END CERTIFICATE----- 14 | -------------------------------------------------------------------------------- /chatGPTuino_turbo/bitmaps.h: -------------------------------------------------------------------------------- 1 | #ifndef Bitmaps_h 2 | #define Bitmaps_h 3 | 4 | /* 5 | 6 | */ 7 | 8 | enum bitmap_names { 9 | eyes_open_1, 10 | eyes_open_2, 11 | eyes_closed 12 | }; 13 | 14 | static unsigned char bitmaps[][128 * 64]{ 15 | // eyes_open_1 16 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 17 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 18 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 19 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 20 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 21 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 22 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 23 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 24 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 25 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 26 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 27 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 28 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 29 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 30 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 31 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x00, 0x00, 0x00, 0x00, 32 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 33 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x06, 0x00, 0x00, 34 | 0x00, 0x00, 0x60, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 35 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x30, 0xC0, 0x01, 0x00, 0x00, 0x00, 36 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0x80, 37 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 38 | 0x00, 0x00, 0x70, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 39 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x20, 0xC0, 0x01, 0x00, 0x00, 0x00, 40 | 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0xC0, 41 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 42 | 0x00, 0x00, 0x20, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 43 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x30, 0xC0, 0x01, 0x00, 0x00, 0x00, 44 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0x80, 45 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 46 | 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 47 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x00, 0x00, 0x00, 0x00, 48 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 49 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 52 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 54 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 55 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 56 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 57 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 58 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 59 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 63 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 66 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 67 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 68 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 69 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 70 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 71 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 72 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 73 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 74 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 75 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 77 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x18, 0xC0, 78 | 0x00, 0x0C, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 79 | 0xEF, 0xFB, 0xFF, 0xFF, 0xFB, 0xBF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 80 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 81 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7B, 0x16, 0xE7, 0x39, 82 | 0xA6, 0xE3, 0x71, 0x8E, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 83 | 0x19, 0x8C, 0xC1, 0x18, 0x8C, 0xC1, 0x38, 0x98, 0x01, 0x00, 0x00, 0x00, 84 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 85 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 86 | 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 87 | 0x06, 0x21, 0x00, 0x02, 0x30, 0x00, 0x06, 0x60, 0x00, 0x00, 0x00, 0x00, 88 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 89 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 90 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 91 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 92 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 93 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 94 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 95 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 96 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 97 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 98 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 99 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 100 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 101 | 0x00, 0x00, 0x00, 0x00, }, 102 | // eyes_open_2 103 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 104 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 105 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 106 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 107 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 108 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 109 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 110 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 111 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 112 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 113 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 114 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 115 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 116 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 117 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 118 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x00, 0x00, 0x00, 0x00, 119 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 120 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x06, 0x00, 0x00, 121 | 0x00, 0x00, 0x60, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 122 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x30, 0xC0, 0x01, 0x00, 0x00, 0x00, 123 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0x80, 124 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 125 | 0x00, 0x00, 0x70, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 126 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x20, 0xC0, 0x01, 0x00, 0x00, 0x00, 127 | 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0xC0, 128 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 129 | 0x00, 0x00, 0x20, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 130 | 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x30, 0xC0, 0x01, 0x00, 0x00, 0x00, 131 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x70, 0x80, 132 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 133 | 0x00, 0x00, 0xF0, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 134 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x01, 0x00, 0x00, 0x00, 135 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 136 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 137 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 138 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 139 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 140 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 141 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 142 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 143 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 144 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 145 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 146 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 147 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 148 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 149 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 150 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 151 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 152 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 153 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 154 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 155 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 156 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 157 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 158 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 159 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 160 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 161 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 162 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 163 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 164 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x20, 0x00, 0x04, 165 | 0x40, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 166 | 0xEF, 0xFF, 0xFE, 0xFF, 0xFF, 0xBE, 0xFF, 0xFE, 0x01, 0x00, 0x00, 0x00, 167 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 168 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x9D, 0xA3, 0x7B, 169 | 0xB8, 0xA3, 0x79, 0xBA, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 170 | 0x71, 0x0C, 0xC7, 0x60, 0x0C, 0xC6, 0x60, 0x8C, 0x01, 0x00, 0x00, 0x00, 171 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 172 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 173 | 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 174 | 0x80, 0x01, 0x30, 0x00, 0x03, 0x18, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 175 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 176 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 177 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 178 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 179 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 180 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 181 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 182 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 183 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 184 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 185 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 186 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 187 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 188 | 0x00, 0x00, 0x00, 0x00, }, 189 | //eyes_closed 190 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 191 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 192 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 193 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 194 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 195 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 196 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 197 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 198 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 199 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 200 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 201 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 202 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 203 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 204 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 205 | 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 206 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 207 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 208 | 0x00, 0x00, 0xE0, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 209 | 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 210 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 211 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x0F, 0x00, 0x00, 212 | 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 213 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x01, 0x00, 0x00, 0x00, 214 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 215 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 216 | 0x00, 0x00, 0xE0, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 217 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 218 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 219 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x0F, 0x00, 0x00, 220 | 0x00, 0x00, 0xF0, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 221 | 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x00, 0x00, 0x00, 0x00, 222 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 223 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 224 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 225 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 226 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 227 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 228 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 229 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 230 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 231 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 232 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 233 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 234 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 235 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 236 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 237 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 238 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 239 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 240 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 241 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 242 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 243 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 244 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 245 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 246 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 247 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 248 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 249 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 250 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 251 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x04, 252 | 0x40, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 253 | 0xEF, 0xFB, 0xF7, 0xEF, 0xFF, 0x77, 0xFF, 0xFE, 0x01, 0x00, 0x00, 0x00, 254 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 255 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3B, 0x5D, 0xA3, 0x73, 256 | 0xB8, 0xA3, 0x79, 0x98, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 257 | 0x71, 0x0C, 0xC6, 0x60, 0x0C, 0xC6, 0x60, 0x8C, 0x01, 0x00, 0x00, 0x00, 258 | 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 259 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 260 | 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 261 | 0x80, 0x01, 0x30, 0x00, 0x03, 0x18, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 262 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 263 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 264 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 265 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 266 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 267 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 268 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 269 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 270 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 271 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 272 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 273 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 274 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 275 | 0x00, 0x00, 0x00, 0x00, } 276 | }; 277 | 278 | #endif -------------------------------------------------------------------------------- /chatGPTuino_turbo/chatGPTuino_turbo.ino: -------------------------------------------------------------------------------- 1 | /* 2 | More details at https://bit.ly/chatGPTuino 3 | */ 4 | #include 5 | #include // OLED 6 | 7 | #include // ESP32 8 | #include // ESP32 9 | 10 | // IMPORTANT: Use ArduinoJson VERSION 6.21.5 (select this version in the Library manager) 11 | #include // Handle JSON formatting for API calls 12 | 13 | #include // Keyboard input 14 | #include // Keyboard input mapping 15 | // If you want to add more special key functionality, use these key constants -> https://github.com/techpaul/PS2KeyAdvanced/blob/master/src/PS2KeyAdvanced.h 16 | 17 | #include "credentials.h" // Network name, password, and private API key 18 | #include "bitmaps.h" // Images shown on screen 19 | 20 | #define DEBUG // Prints out verbose debug info in Arduino IDE console 21 | // #define DEBUG_SERVER_RESPONSE_BREAKING // Breaks API calls, only uncomment when troubleshooting API response 22 | 23 | // Pins for PS/2 keyboard (through USB) 24 | #define DATAPIN 6 // (USB Data -) (PS2 pin 1) 25 | #define IRQPIN 5 // (USB Data +) (PS2 pin 5) 26 | 27 | /*************** Open AI endpoint and connection details ****************/ 28 | const char* openAPIendPoint = "https://api.openai.com/v1/chat/completions"; 29 | const char* server = "api.openai.com"; 30 | #define PORT 443 // The port you'll connect to on the server - this is standard. 31 | #define SERVER_RESPONSE_WAIT_TIME (15 * 1000) // How long to wait for a server response (seconds * 1000) 32 | 33 | /*************** Display settings ****************/ 34 | #define SCREEN_HEIGHT 64 35 | #define SCREEN_WIDTH 128 36 | 37 | /* Font selection is made in setup(). 38 | For the most part, FONT_WIDTH and FONT_HEIGHT can match the designated font size. 39 | However, these can be tuned to "scrunch in" more viewable lines for your given OLED size. */ 40 | #define FONT_WIDTH 6 41 | #define FONT_HEIGHT 13 42 | 43 | /* These constants are used extensively in the displaying of text input and response. 44 | Adjust at your own peril. */ 45 | #define MAX_CHAR_PER_OLED_ROW (SCREEN_WIDTH / FONT_WIDTH) 46 | #define MAX_OLED_ROWS (SCREEN_HEIGHT / FONT_HEIGHT) 47 | #define MAX_CHARS_ON_SCREEN (MAX_CHAR_PER_OLED_ROW * MAX_OLED_ROWS) 48 | 49 | /*************** Alert Messages *************** 50 | Messages dispayed to user for informational purposes. */ 51 | #define ALERT_MSG_LENGTH 70 52 | const char SystemMsgUpdateInitiateAlert[ALERT_MSG_LENGTH] = "Enter new system message."; 53 | const char SystemMsgUpdateSuccessAlert[ALERT_MSG_LENGTH] = "System message updated! Start typing to ask next question."; 54 | const char WelcomeInstructionsAlert[ALERT_MSG_LENGTH] = "Start typing to chat."; 55 | 56 | /*************** Animation Messages *************** 57 | Messages dispayed below face animation. */ 58 | #define ANIMATION_MSG_LENGTH (MAX_CHAR_PER_OLED_ROW + 1) 59 | const char BootScreenMsg[ANIMATION_MSG_LENGTH] = "Hi. I'm chatGPTuino."; 60 | const char WaitingForApiResponseMsg[ANIMATION_MSG_LENGTH] = "Thinking..."; 61 | const char ApiResponseFailMsg[ANIMATION_MSG_LENGTH] = "Brain freeze, 1 sec"; 62 | const char ServerConnectionFailMsg[ANIMATION_MSG_LENGTH] = "Contemplating..."; 63 | const char DeserializeFailMsg[ANIMATION_MSG_LENGTH] = "I'm a bit scrambled."; 64 | 65 | /* These correspond to the messages above, and define the milliseconds each will show. */ 66 | #define BOOT_ALERT_INTERVAL (3 * 1000) 67 | #define WAITING_FOR_API_RESPONSE_INTERVAL (1 * 1000) // This length needs to stay low, as it could slow down acknowledging the response 68 | #define API_RESPONSE_FAIL_INTERVAL (2 * 1000) 69 | #define SERVER_CONNECTION_FAIL_INTERVAL (2 * 1000) 70 | #define DESERIALIZE_FAIL_INTERVAL (2 * 1000) 71 | 72 | /*************** System States ************** 73 | The different states the program can be in. */ 74 | enum States { GET_USER_INPUT, // When a user is typing, diplay input on OLED 75 | GET_RESPONSE, // Send a POST call to the Open AI API with user input 76 | DISPLAY_RESPONSE, // Display the assistant response on the OLED 77 | REVIEW_RESPONSE, // Scroll up and down the assistant response 78 | UPDATE_SYS_MSG }; // User input to change the system message 79 | 80 | 81 | /*************** States Variables ************** 82 | This struct encapusulates state variables that manage 83 | the input and display. */ 84 | struct StateVars { 85 | 86 | // The state will determine the flow of the program 87 | States state; 88 | 89 | /* This will count the total number of messages between the user and the agent. 90 | This does not include the system message. We will use this message count 91 | to determine our index inside the messages array. */ 92 | int msgCount; 93 | 94 | /* Every time a user types a character, we increment inputIdx. 95 | If user presses backspace, we decrement inputIdx. */ 96 | int inputIdx; 97 | 98 | // A flag to clear the display buffer and reset inputIdx to 0 99 | bool clearInput; 100 | 101 | /* When a user presses up and down arrows, this adjusts the index 102 | of the message content to show */ 103 | int displayOffset; 104 | 105 | /* A flag to used to ensure user input is displayed only when the 106 | display buffer has been meaningfully changed */ 107 | bool bufferChange; 108 | 109 | /* The msgPtr is used for assigning keyboard input text to either: 110 | -> the System Message or, 111 | -> a User Message in the messages array 112 | It is assigned based on the current state. 113 | The msgPtr is also used for displaying the user keyboard input text. */ 114 | struct Message* msgPtr; 115 | }; 116 | 117 | /*************** Roles ************** 118 | The current chatGTP API format has 3 distinct role types for each message. 119 | 120 | "system" role is a message that can be used to "steer" the response of the model 121 | "user" role is assigned to messages sent from the user to the model 122 | "assistant" role is assigned to messages sent from the model to the user 123 | 124 | These roles are sent as a character string in the API call. */ 125 | enum roles { sys, //system 126 | user, 127 | assistant }; 128 | 129 | const char roleNames[3][10] = { "system", "user", "assistant" }; 130 | 131 | /****** Tokens ******* 132 | A token in the OpenAI API is roughly equivalent to 3/4 of a word. Tokens are extremely important, because they are used to measure billing. 133 | You will be billed for the number of token you receive from Open AI *AND* the number you send. 134 | 135 | When you make an API call to Open AI, the number of tokens you request is part of the request. 136 | Each values below can dramatically modulate the cost of communication as well as the storage space used to store each message. 137 | 138 | These reference may be useful for understanding tokens and message size. 139 | https://platform.openai.com/docs/api-reference/chat/create#chat/create-max_tokens 140 | https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them 141 | https://platform.openai.com/docs/guides/chat/introduction 142 | https://platform.openai.com/tokenizer */ 143 | #define MAX_TOKENS 200 // Each token is roughly 3/4 of a word. The longer this bigger this number, the longer the potenial response. 144 | #define CHARS_PER_TOKEN 6 // Each token equates to roughly 4 chars, but does not include spaces, the number 6 was chosen to act as a safety buffer incase a response is above average length. 145 | #define MAX_MESSAGE_LENGTH (MAX_TOKENS * CHARS_PER_TOKEN) 146 | 147 | /* The messages you send to OpenAI DO NOT PERSIST in the model, 148 | so everytime you send a message to the OpenAI API, you'll want to include 149 | as many previous messages in order for the model to respond with context. 150 | The value below determines the depth of that context. A small number means the responses 151 | will not have as much memory, but will cost less and require much less memory. 152 | A large value will allow for more rapport in the assistant repsonses, 153 | but will cost much more and take up load more memory. 154 | It depends on what you're after. 10 has been a good number for me. 155 | When testing code not related to reponses, I recommend using a small number, like 4. */ 156 | #define MAX_MESSAGES 20 // Min 2, Max 20 157 | 158 | /* When sending message, they all go into a JSON doc. The sizes of this doc 159 | depends on the size of the previous choices. The value below is based on a 160 | MAX_MESSAGE_LENGTH of 375 and MAX_MESSAGES of 20. Should you have a larger values for 161 | these, you'll likely want to adjust this value. You can use the ArduinoJSON Assistant 162 | to help you calculate a size: 163 | 164 | https://arduinojson.org/v6/assistant 165 | https://arduinojson.org/v6/how-to/determine-the-capacity-of-the-jsondocument/ 166 | 167 | Also included with this repo is a text file with sample JSON data to 168 | play around with sizing.*/ 169 | #define DYNAMIC_JSON_DOC_SERIALIZE_SIZE 12288 // bytes 170 | 171 | /*************************************************************************/ 172 | /******* GLOBALS ******************************************************/ 173 | /*************************************************************************/ 174 | 175 | /****** Message and Message Array ********* 176 | The "chat" format used by the OpenAI API is an array of {role, content} pairs. 177 | I am using the singular term "message" to refer to one of these pairs. 178 | 179 | Everytime you communicate with the model, you must send all your 180 | previous messages, as the model messages do not persist from one 181 | API call to the next. To say this again, as it is key... 182 | 183 | If you want the model responses to be couched in the context of previous 184 | messages, you must include all the messages from the user and from the assistant 185 | in chronological order (oldest to newest). 186 | 187 | To manage all these messages, we implement the following: 188 | 1) A message struct for handling each {role, content} pair 189 | 2) A messages array, to hold all the message(s). 190 | 191 | The messages array is treated as a circular buffer. When the number of messages exceeds 192 | the length of the array, the newest message overwrites the oldest messaage. 193 | 194 | This limits the "depth" of backward context that can be maintained with the chatbot. 195 | If you increase MAX_MESSAGES you'll increase this depth, and also increase total cost, 196 | as well as increase memory allocated for the messages array. 197 | 198 | The messages array is updated by every state, and is used extensively throughout the program. 199 | */ 200 | struct Message { 201 | enum roles role; 202 | char content[MAX_MESSAGE_LENGTH]; 203 | } messages[MAX_MESSAGES]; 204 | 205 | /******* System message ********* 206 | As mentioned ealier, the system message is a special message meant to steer the models response. 207 | In the current configuation, the system message is NOT stored in the messages array, but rather inserted 208 | into the JSON packet during the API call, prior to the last message sent. 209 | The system message can be used for fun, and to configure the kind of response you want from the chatBot. */ 210 | Message systemMessage = { sys, "Respond as if you were a pirate." }; 211 | 212 | // Used when API is not responding, prior to making another API call. 213 | Message noConnect = { assistant, "I'm sorry, I seem to be having a brain fart, let me think on that again." }; 214 | 215 | /* The number of characters in the assistant response. 216 | This is used extensively in how the message response is displayed. */ 217 | unsigned int responseLength; 218 | 219 | /* Monochrome OLED Display - pick a constructor that works for your screen. 220 | The code has been optimized for screens of size 128 x 64 px. 221 | https://github.com/olikraus/u8g2/wiki/u8g2setupcpp */ 222 | 223 | // Small screen - 0.96", 128 x 64 px, SSD1306 using I2C 224 | // U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* clock=*/SCL, /* data=*/SDA, /* reset=*/U8X8_PIN_NONE); // High speed I2C 225 | 226 | // Not as small screen, 1.3", 128 x 64 px, SSD1106 using I2C 227 | // U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); 228 | 229 | // Larger Screen, 2.42", 128 x 64 px, SSD1309 using SPI 230 | U8G2_SSD1309_128X64_NONAME0_F_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/SCK, /* data=*/SDO, /* cs=*/38, /* dc=*/33, /* reset=*/U8X8_PIN_NONE); 231 | 232 | /*************** Keyboard Input ****************/ 233 | PS2KeyAdvanced keyboard; 234 | PS2KeyMap keymap; 235 | 236 | /*************************************************************************/ 237 | /******* FUNCTIONS ******************************************************/ 238 | /*************************************************************************/ 239 | 240 | /* Function: displayMsg 241 | * ------------------------- 242 | * Displays contents of char array to OLED with text wrapping. 243 | * If text exceeds text exceeds the number of lines, it scrolls 244 | * the lines up to display the text. 245 | * 246 | * Clears OLED when starts. 247 | * 248 | * This function is used for displaying user text while tying, 249 | * text from the assistant, system message undates, and ALERT messages. 250 | * It is also invoked when a user presses the up and down arrows to 251 | * review the response. 252 | * 253 | * msg[]: The source char array to display from 254 | * endIdx: The last index to display from, non-inclusive 255 | * startIdx: The first index to display from, inclusive, defaults to 0 256 | * setDelay: If true, delays and redraws display everytime a space ' ' is encountered, 257 | * defaults to false 258 | * 259 | * returns: void 260 | */ 261 | void displayMsg(char msg[], int endIdx, int startIdx = 0, bool setDelay = false) { 262 | 263 | // Clear display and position cursor in top left of screen. 264 | u8g2.clearBuffer(); 265 | u8g2.setCursor(0, 0); 266 | 267 | // Track which "line" the text is on. 0 indexed. 268 | int lineNum = 0; 269 | 270 | bool firstTime = true; // Used to control when and when not to delay text displaying 271 | 272 | /* 'i' gets modulated when the text scrolls, and is the index of the text on the display. 273 | If the message is long, and the text scrolls up, a specifc character will be displayed 274 | and then cleared multiple times. 275 | 276 | 'count' is the number of chars that have been displayed thus far from the char array, 277 | it is used to trigger the scroll action. */ 278 | int i, count; 279 | 280 | // Display chars from startIdx to endIdx 281 | for (i = startIdx, count = 1; i < endIdx; i++, count++) { 282 | 283 | // Move cursor to left and down one line for text wrapping. (Always occurs first time through) 284 | if (i % MAX_CHAR_PER_OLED_ROW == 0) { 285 | lineNum++; 286 | u8g2.setCursor(0, FONT_HEIGHT * lineNum); 287 | } 288 | 289 | u8g2.print(msg[i]); // Write char to display buffer 290 | 291 | /* Display and delay at spaces ' '. 292 | this effect is meant to mimic the chatGTP web interface */ 293 | if ((msg[i] == ' ' && setDelay)) { 294 | 295 | /* Only delay the first time the text is shown or when the text scrolls up 296 | we only want to delay displaying of the next new line, not the previously drawn lines */ 297 | if (firstTime || lineNum == MAX_OLED_ROWS) { 298 | delay(300); 299 | u8g2.sendBuffer(); // Display all text. 300 | } 301 | } 302 | 303 | /* If you exceed the number of chars avaiable on the screen, 304 | clear the display, and move i backward so that the next time through we'll 305 | redraw all but one of the previous lines to make room for the next line. 306 | In this way, the text auto "scrolls" up when a long message is displayed. */ 307 | if ((count != 0) && ((count % MAX_CHARS_ON_SCREEN) == 0)) { 308 | 309 | u8g2.clearBuffer(); // Clear all text in the buffer. 310 | 311 | i -= MAX_CHARS_ON_SCREEN - MAX_CHAR_PER_OLED_ROW; // Move back total lines - 1 312 | lineNum = 0; 313 | firstTime = false; // When we re-display the previous lines, we don't want to delay. 314 | } 315 | } 316 | 317 | u8g2.sendBuffer(); 318 | } 319 | 320 | /* Function: displayFace 321 | * ------------------------- 322 | * Displays 3 faces repeatly and randomly, as well as a message on screen. 323 | * Very amateur animation for blinking and mouth movement. 324 | * 325 | * displayTime: Roughly how long the animation will last. 326 | * This does not account for code execution time, 327 | * and is an underestimate of total run time, but close enough. 328 | * displayMessage: What message to show below the face. 329 | * delayInterval: Adjust the "frame rate" of the animation. 330 | * 331 | * returns: void 332 | */ 333 | void displayFace(long displayTime, const char displayMessage[], long delayInterval = 100) { 334 | 335 | long iterations = displayTime / delayInterval; 336 | int bitmapIndex; // The bitmap to display 337 | int marginTop = -10; // How many pixels from top to display bitmap (must be negative) 338 | int marginBottom = 5; // How many pixels from bottom to display text 339 | 340 | randomSeed(analogRead(0)); 341 | 342 | for (int i = 0; i <= iterations; i++) { 343 | 344 | int randomBlink = random(1, iterations); // Pick a random number 345 | if (i % randomBlink == 0) { // blink 346 | bitmapIndex = eyes_closed; 347 | } else if (i % 2 == 0) { 348 | bitmapIndex = eyes_open_2; 349 | } else { 350 | bitmapIndex = eyes_open_1; 351 | } 352 | 353 | u8g2.clearBuffer(); 354 | u8g2.drawXBM(0, marginTop, SCREEN_WIDTH, SCREEN_HEIGHT, bitmaps[bitmapIndex]); // Put face in buffer 355 | u8g2.setCursor(0, SCREEN_HEIGHT - marginBottom); 356 | u8g2.print(displayMessage); // Put text in buffer 357 | u8g2.sendBuffer(); // Display buffer 358 | 359 | delay(delayInterval); 360 | } 361 | } 362 | 363 | /* Function: displayResponse 364 | * ------------------------- 365 | * Displays the reponse from openAPI to the OLED. 366 | * 367 | * struct StateVars * pStateVars: struct of state variables, the members used include... 368 | * states* state: current state 369 | * int* displayOffset: used for adjusting which line of text to display first 370 | * int* msgCount: current number of messages in message array 371 | * 372 | * returns: void 373 | */ 374 | void displayResponse(struct StateVars* pStateVars) { 375 | 376 | if (pStateVars->state == DISPLAY_RESPONSE || pStateVars->state == REVIEW_RESPONSE) { 377 | 378 | Serial.println("|- Print Response -------------------------------|"); 379 | 380 | /* Determine the most recent message index - recall, the most recent message IS NOT always 381 | the latest element in the messages[] array. */ 382 | int responseIdx = (pStateVars->msgCount % MAX_MESSAGES) - 1 < 0 // Check if you've reached the last index 383 | ? MAX_MESSAGES - 1 // If so, we'll want to print the last index 384 | : pStateVars->msgCount % MAX_MESSAGES - 1; // Otherwise, circle back 385 | 386 | /* Calculate the start and end display indices for the response and for "response scrubbing" 387 | (ie, when the user presses up and down arrows to look through response on OLED) */ 388 | int startIdx; 389 | int endIdx; 390 | 391 | /* Prepare start and stop indexes to display a new response one word at a time. If the number of text lines 392 | exceeds the available space, we'll shift all the text up one row as we keep displaying. */ 393 | if (pStateVars->state == DISPLAY_RESPONSE) { 394 | 395 | startIdx = 0; 396 | endIdx = responseLength; 397 | 398 | // Reset display offset every time a new message is received 399 | pStateVars->displayOffset = 0; 400 | 401 | /* Prepare start and stop indexes if the user is reviewing the response with up and down arrows. 402 | This means the reponse was long and the total number of text lines exceeded 403 | the aviable space to show on the screen. */ 404 | } else if (pStateVars->state == REVIEW_RESPONSE) { 405 | 406 | // How many spaces are needed to complete the last row 407 | byte spacesToCompleteLastRow = MAX_CHAR_PER_OLED_ROW - responseLength % MAX_CHAR_PER_OLED_ROW; 408 | 409 | // Count full rows of text in response 410 | int fullRowsOfText = (responseLength + spacesToCompleteLastRow) / MAX_CHAR_PER_OLED_ROW; // This should always be a whole number 411 | 412 | // Calculate index at the end of the last row in response 413 | int endFrameLastIdx = (fullRowsOfText * MAX_CHAR_PER_OLED_ROW); 414 | 415 | // Calculate the first index in the "End of Respone 'Frame'" 416 | int endFrameFirstIdx = endFrameLastIdx - MAX_CHARS_ON_SCREEN; 417 | 418 | // Calculate display adjustment due to up/down arrow presses 419 | int scrubAdj = pStateVars->displayOffset * MAX_CHAR_PER_OLED_ROW; 420 | 421 | // Determine start/ end indices 422 | startIdx = endFrameFirstIdx + scrubAdj; 423 | 424 | // Start index can never be negative 425 | if (startIdx < 0) { 426 | startIdx = 0; 427 | (pStateVars->displayOffset)++; // Negates an up arrow press in case user keeps pressing up arrow when already 428 | // at the beginning of a message so displayOffset will not accumulate presses 429 | } 430 | 431 | endIdx = startIdx + MAX_CHARS_ON_SCREEN - 1; 432 | } 433 | 434 | // Display message 435 | displayMsg(messages[responseIdx].content, endIdx, startIdx, pStateVars->state == DISPLAY_RESPONSE ? true : false); 436 | pStateVars->state = GET_USER_INPUT; // Prepare for new user input 437 | } 438 | } 439 | 440 | /* Function: printToConsoleMessageArray 441 | * ------------------------- 442 | * Prints all contents of the messages array to the console, 443 | * as well as the length of characters of the most recent reponse. 444 | * 445 | * returns: void 446 | */ 447 | void printToConsoleMessageArray() { 448 | 449 | Serial.println(" |------------------- Messages[] --------------------"); 450 | 451 | for (int i = 0; i < MAX_MESSAGES; i++) { 452 | Serial.print(" | "); 453 | Serial.print(i); 454 | Serial.print(" - "); 455 | Serial.println(messages[i].content); 456 | } 457 | 458 | Serial.print(" | Size of most recent reponse -> "); 459 | Serial.println(responseLength); 460 | Serial.println(" |----------------------------------------------------"); 461 | } 462 | 463 | /* Function: generateJSONRequestBody 464 | * ------------------------- 465 | * Creates a JSON formatted object of all the messages 466 | * in the messages array. It all inserts the system message into 467 | * this JSON object prior to the most recent message. 468 | * 469 | * int numMessages: Number of messages in the messages array 470 | * 471 | * returns: DynamicJsonDocument 472 | */ 473 | DynamicJsonDocument generateJsonRequestBody(int numMessages) { 474 | 475 | // Generate the JSON document that will be sent to OpenAI. 476 | DynamicJsonDocument doc(DYNAMIC_JSON_DOC_SERIALIZE_SIZE); 477 | 478 | // Add static parameters that get sent with all messages https://platform.openai.com/docs/api-reference/chat/create 479 | doc["model"] = "gpt-3.5-turbo"; // Current model, will soon be gpt-4... 480 | doc["max_tokens"] = MAX_TOKENS; 481 | 482 | // Create nested array that will hold all the system, user, and assistant messages 483 | JsonArray messagesJSON = doc.createNestedArray("messages"); 484 | 485 | /* Our array messages[] is used like a circular buffer. 486 | If the size of messages[] is 10, and we add an 11th message, 487 | then messages[0] is replaced with the 11th message. 488 | 489 | This means that messages[0] may hold a message that is newer 490 | (more recent chronologically) than messages[1]. 491 | 492 | When we send the messages to OpenAI, the messages need to be in order 493 | from oldest to newest. So messagesJSON[0], DOES NOT always map to 494 | messages[0]. In the case above, messagesJSON[0] would equal messages[1] 495 | since messages[1] was the oldest message sent. 496 | 497 | To maintain this chronological mapping from messages[] to messagesJSON[] 498 | we introduce a new index. */ 499 | int oldestMsgIdx = 0; 500 | 501 | /* If the total number of messages sent between user 502 | and agent exceeds the max, circle back around. */ 503 | if (numMessages >= MAX_MESSAGES) { 504 | oldestMsgIdx = numMessages % MAX_MESSAGES; 505 | } 506 | 507 | /* Copy all message(s) from messages[] to messagesJSON[]. 508 | Additionally, inject the system message prior to the most recent message sent. 509 | 'i' is used to index messagesJSON[], and 'oldestMsgIdx' is used to index messages[] */ 510 | for (int i = 0; i < numMessages && i < MAX_MESSAGES; i++) { 511 | 512 | // Inject system message before most recent message 513 | if (i == numMessages - 1 || i == MAX_MESSAGES - 1) { 514 | messagesJSON[i]["role"] = roleNames[systemMessage.role]; 515 | messagesJSON[i]["content"] = systemMessage.content; 516 | i++; 517 | } 518 | 519 | messagesJSON[i]["role"] = roleNames[messages[oldestMsgIdx].role]; 520 | messagesJSON[i]["content"] = messages[oldestMsgIdx].content; 521 | 522 | oldestMsgIdx++; 523 | oldestMsgIdx %= MAX_MESSAGES; 524 | } 525 | 526 | #ifdef DEBUG 527 | Serial.println(" | JSON to be sent:"); 528 | serializeJsonPretty(doc, Serial); 529 | Serial.println(""); 530 | #endif 531 | 532 | return doc; 533 | } 534 | 535 | /* Function: postRequest 536 | * ------------------------- 537 | * Makes a POST request to OpenAI 538 | * 539 | * DynamicJsonDocument * pJSONRequestBody: The JSON Request body to send with the POST 540 | * WiFiClientSecure * pClient: The wifi object handling the sending 541 | * 542 | * returns: void 543 | */ 544 | void postRequest(DynamicJsonDocument* pJsonRequestBody, WiFiClientSecure* pClient) { 545 | 546 | Serial.println(" | Connected to OpenAI"); 547 | // Make request 548 | pClient->println("POST https://api.openai.com/v1/chat/completions HTTP/1.0"); 549 | // Send headers 550 | pClient->print("Host: "); 551 | pClient->println(server); 552 | pClient->println("Content-Type: application/json"); 553 | pClient->print("Content-Length: "); 554 | pClient->println(measureJson(*pJsonRequestBody)); 555 | pClient->print("Authorization: Bearer "); 556 | pClient->println(openAI_Private_key); 557 | pClient->println("Connection: Close"); 558 | /* The empty println below inserts a stand-alone carriage return and newline (CRLF) 559 | which is part of the HTTP protocol following sending headers and prior to sending the body. */ 560 | pClient->println(); 561 | serializeJson(*pJsonRequestBody, *pClient); // Serialize the JSON doc and append to client object 562 | pClient->println(); // Send the body to the server 563 | 564 | Serial.println(" | JSON sent"); 565 | } 566 | 567 | /* Function: putResponseInMsgArray 568 | * ------------------------- 569 | * Applies filter to JSON reponse and saves response to messages array. 570 | * 571 | * WiFiClientSecure * pClient: The wifi object handling the response 572 | * int numMessages: Number of messages in the messages array 573 | * 574 | * returns: bool - 0 for failure to extract JSON, 1 for success 575 | */ 576 | bool putResponseInMsgArray(WiFiClientSecure* pClient, int numMessages) { 577 | 578 | pClient->find("\r\n\r\n"); // This search gets us to the body section of the http response 579 | 580 | /* Create a filter for the returning JSON 581 | https://arduinojson.org/news/2020/03/22/version-6-15-0/ */ 582 | StaticJsonDocument<500> filter; 583 | JsonObject filter_choices_0_message = filter["choices"][0].createNestedObject("message"); 584 | filter_choices_0_message["role"] = true; 585 | filter_choices_0_message["content"] = true; 586 | 587 | // Deserialize the JSON 588 | StaticJsonDocument<2000> jsonResponse; 589 | DeserializationError error = deserializeJson(jsonResponse, *pClient, DeserializationOption::Filter(filter)); 590 | 591 | // If deserialization fails, exit immediately and try again. 592 | if (error) { 593 | 594 | displayFace(DESERIALIZE_FAIL_INTERVAL, DeserializeFailMsg); 595 | pClient->stop(); 596 | 597 | Serial.print(" | deserializeJson() failed->"); 598 | Serial.println(error.c_str()); 599 | 600 | return 0; 601 | } 602 | 603 | // Update messages[] with new message details 604 | messages[numMessages % MAX_MESSAGES].role = assistant; // Assign incoming message role as 'assistant' 605 | strncpy(messages[numMessages % MAX_MESSAGES].content, jsonResponse["choices"][0]["message"]["content"] | "...", MAX_MESSAGE_LENGTH); // Copy content 606 | 607 | // Measure the length of the response 608 | responseLength = measureJson(jsonResponse["choices"][0]["message"]["content"]); 609 | 610 | return 1; 611 | } 612 | 613 | /* Function: waitForServerResponse 614 | * ------------------------- 615 | * Holds program in loop while waiting for response from server. 616 | * Times out after defined interval. Displays waiting face to OLED. 617 | * 618 | * WiFiClientSecure * pClient: The wifi object handling the response 619 | * 620 | * returns: bool - 0 for timeout, 1 for success 621 | */ 622 | bool waitForServerResponse(WiFiClientSecure* pClient) { 623 | 624 | bool responseSuccess = true; 625 | long startWaitTime = millis(); // Measure how long it takes 626 | 627 | while (pClient->available() == 0) { 628 | // While waiting, show a face animation. 629 | displayFace(WAITING_FOR_API_RESPONSE_INTERVAL, WaitingForApiResponseMsg); 630 | 631 | /* If you've been waiting too long, perhaps something went wrong, 632 | break out and try again. */ 633 | if (millis() - startWaitTime > SERVER_RESPONSE_WAIT_TIME) { 634 | Serial.println(" | SERVER_RESPONSE_WAIT_TIME exceeded."); 635 | return false; 636 | } 637 | } 638 | 639 | return responseSuccess; 640 | } 641 | 642 | /* Function: getResponse 643 | * ------------------------- 644 | * Form JSON request body and send HTTPS request to openAI. 645 | * Parse the reponse. Update messages array with new response. 646 | * 647 | * struct StateVars * pStateVars: struct of state variables, members used include: 648 | * states* pState: current state 649 | * int* pMsgCount: current number of messages in message array 650 | * 651 | * returns: void 652 | */ 653 | void getResponse(struct StateVars* pStateVars) { 654 | 655 | if (pStateVars->state == GET_RESPONSE) { 656 | 657 | Serial.println("|- Start API Call -------------------------------|"); 658 | Serial.print(" | msgCount->"); 659 | Serial.println(pStateVars->msgCount); 660 | 661 | // Create a secure wifi client 662 | WiFiClientSecure client; 663 | client.setCACert(rootCACertificate); 664 | 665 | // Generate JSON Request body from messages array 666 | DynamicJsonDocument jsonRequestBody = generateJsonRequestBody(pStateVars->msgCount); 667 | 668 | // Connect to OpenAI 669 | int conn = client.connect(server, PORT); 670 | 671 | // If connection is successful, send JSON 672 | if (conn == 1) { 673 | // Send JSON Request body to OpenAI API endpoint URL 674 | postRequest(&jsonRequestBody, &client); 675 | 676 | #ifdef DEBUG_SERVER_RESPONSE_BREAKING 677 | /* Seeing the headers of the server response can be extremely useful to troubleshooting 678 | connection errors. However, this readout of the server response header breaks 679 | how the message is parsed from the response. So you'll be able to send and receive one message, 680 | but no more. So make sure you only use this when debugging server response issues. */ 681 | 682 | String line = client.readStringUntil('X'); 683 | Serial.print(line); 684 | #endif 685 | 686 | // Wait for OpenAI response 687 | bool responseSuccess = waitForServerResponse(&client); 688 | 689 | // If you receive a response, parse the JSON and copy the response to messages[] 690 | if (responseSuccess) { 691 | 692 | bool responseSaved = putResponseInMsgArray(&client, pStateVars->msgCount); 693 | 694 | if (responseSaved) { 695 | 696 | (pStateVars->msgCount)++; // We successfully received and saved a new message 697 | pStateVars->state = DISPLAY_RESPONSE; // Now display response 698 | 699 | } else { 700 | // An error occured durring parsing, exit and try again (error message handled in parsing function) 701 | return; 702 | } 703 | 704 | #ifdef DEBUG 705 | printToConsoleMessageArray(); 706 | #endif 707 | 708 | } else { 709 | // Server did not responsd to POST request, go through loop and try again. 710 | displayFace(API_RESPONSE_FAIL_INTERVAL, ApiResponseFailMsg); 711 | Serial.println(" | Server did not respond. Trying again."); 712 | } 713 | 714 | } else { 715 | // Failed to connect to server, go through loop and try again. 716 | displayFace(SERVER_CONNECTION_FAIL_INTERVAL, ServerConnectionFailMsg); 717 | Serial.println(" | Could not connect to server. Trying again."); 718 | } 719 | 720 | // Disconnect from server after response received, server timeout, or connection failure 721 | client.stop(); 722 | } 723 | } // Close getResponse 724 | 725 | /* Function: getUserInput 726 | * ------------------------- 727 | * Parse keyboard input into Command Keys (i.e. Shift, Backspace, etc) and Text 728 | * If Command Keys, execute appropriate command 729 | * If Text, save to either messages array or systemMessage 730 | * 731 | * struct StateVars* pStateVars: state variables used for managing input and display 732 | * 733 | * returns: void 734 | */ 735 | void getUserInput(struct StateVars* pStateVars) { 736 | 737 | // If the user has pressed a key during an input/update state 738 | if (keyboard.available() && (pStateVars->state == GET_USER_INPUT || pStateVars->state == UPDATE_SYS_MSG)) { 739 | 740 | /* This is a 16 bit value, the 8 MSB are individual flags for functional keys (like shift, control, etc) 741 | While the 8 LSB make up a unique code for the specific key that was pressed. */ 742 | int key = keyboard.read(); 743 | byte base = key & 0xff; // This is the 8 bit unique code for a character 744 | byte remappedKey = keymap.remapKey(key); // remapKey returns a 0 if the key is not standard ASCII/UTF-8 code. 745 | // This is used to filter out non-display character keys, like Fn, Alt, etc 746 | 747 | // Check if up or down arrow pressed 748 | boolean arrowKeyPressed = (base == PS2_KEY_UP_ARROW) || (base == PS2_KEY_DN_ARROW); 749 | 750 | // Printable and Select Command Keys 751 | if (remappedKey > 0 || arrowKeyPressed) { 752 | 753 | // Signals the downstream print function to re-display buffer 754 | pStateVars->bufferChange = true; 755 | 756 | switch (base) { 757 | 758 | case PS2_KEY_ENTER: 759 | 760 | //keypressEnter(&state, &inputIdx, &msgPtr, &msgCount, &bufferChange, &clearInput); 761 | 762 | Serial.println("KeyPressed-> Enter"); 763 | 764 | /* Pressing the Enter/Return key has different effects depending on the state and whether 765 | the user has input any text yet or not. 766 | 767 | state | Major Action 768 | GET_USER_INPUT | Change state to GET_RESPONSE, set msg role as 'user' 769 | UPDATE_SYS_MSG | Change state to GET_USER_INPUT, set msg role as 'sys' */ 770 | if (pStateVars->state == GET_USER_INPUT) { 771 | 772 | // Only change state if user has typed text 773 | if (pStateVars->inputIdx != 0) { 774 | pStateVars->msgPtr->role = user; 775 | pStateVars->msgCount++; 776 | pStateVars->inputIdx = 0; // Reset Input Index for next response 777 | pStateVars->state = GET_RESPONSE; 778 | } else { 779 | /* User pressed enter with no text entered, this can happen easily if a user presses 780 | Enter/Return after the response is shown, thinking they need to clear the display with enter. */ 781 | u8g2.clearDisplay(); 782 | } 783 | 784 | Serial.println(" | User message submitted"); 785 | 786 | // User is updating system message 787 | } else if (pStateVars->state == UPDATE_SYS_MSG) { 788 | 789 | pStateVars->msgPtr->role = sys; // New system message has been added, update the message role 790 | displayMsg((char*)SystemMsgUpdateSuccessAlert, ALERT_MSG_LENGTH); 791 | 792 | pStateVars->state = GET_USER_INPUT; 793 | pStateVars->bufferChange = false; // Do not update display 794 | Serial.println(systemMessage.content); 795 | Serial.println(" | System message updated."); 796 | } 797 | 798 | // Any time enter is pressed, clear the current input for the next message 799 | pStateVars->clearInput = true; 800 | 801 | Serial.print(" | state-> "); 802 | Serial.println(pStateVars->state); 803 | break; 804 | 805 | case PS2_KEY_DELETE: 806 | case PS2_KEY_BS: 807 | 808 | pStateVars->inputIdx = pStateVars->inputIdx > 0 ? pStateVars->inputIdx - 1 : 0; 809 | pStateVars->msgPtr->content[pStateVars->inputIdx] = ' '; 810 | 811 | Serial.println("KeyPressed-> Backspace/Delete "); 812 | Serial.print(" | Input Index->"); 813 | Serial.println(pStateVars->inputIdx); 814 | break; 815 | 816 | case PS2_KEY_TAB: 817 | case PS2_KEY_SPACE: 818 | 819 | if (pStateVars->inputIdx < MAX_MESSAGE_LENGTH - 1) { 820 | pStateVars->msgPtr->content[pStateVars->inputIdx] = ' '; 821 | pStateVars->inputIdx++; 822 | } 823 | 824 | Serial.println("KeyPressed-> Space/Tab"); 825 | Serial.print(" | Input Index->"); 826 | Serial.println(pStateVars->inputIdx); 827 | break; 828 | 829 | /* The Escape key changes allows the user to enter a new system message. */ 830 | case PS2_KEY_ESC: 831 | displayMsg((char*)SystemMsgUpdateInitiateAlert, ALERT_MSG_LENGTH); 832 | pStateVars->state = UPDATE_SYS_MSG; 833 | pStateVars->inputIdx = 0; 834 | pStateVars->bufferChange = false; // Do not update display 835 | 836 | Serial.println("KeyPressed-> Esc"); 837 | Serial.print(" | state-> "); 838 | Serial.println(pStateVars->state); 839 | break; 840 | 841 | /* Up and down arrow keys are used when the user is reviewing a long response. */ 842 | case PS2_KEY_UP_ARROW: 843 | 844 | if (pStateVars->inputIdx == 0) { // Ensure user is not typing a new message (maybe they pressed arrow key by accident) 845 | pStateVars->displayOffset--; // Move the display index back one line 846 | pStateVars->state = REVIEW_RESPONSE; // Make sure the change is displayed on the screen 847 | } 848 | 849 | Serial.println("KeyPressed-> Up Arrow"); 850 | Serial.print(" | displayOffset->"); 851 | Serial.println(pStateVars->displayOffset); 852 | break; 853 | 854 | case PS2_KEY_DN_ARROW: 855 | 856 | if (pStateVars->inputIdx == 0) { // Ensure user is not typing a new message (maybe they pressed arrow key by accident) 857 | pStateVars->displayOffset++; // Move the display index forward one line 858 | 859 | if (pStateVars->displayOffset > 0) { // displayOffset of 0 represents the bottom of the message, 860 | pStateVars->displayOffset = 0; // so you can't move below that. 861 | } 862 | 863 | pStateVars->state = REVIEW_RESPONSE; // Make sure the change is displayed on the screen 864 | } 865 | 866 | Serial.println("KeyPressed-> Down Arrow"); 867 | Serial.print(" | displayOffset->"); 868 | Serial.println(pStateVars->displayOffset); 869 | break; 870 | 871 | default: 872 | 873 | if (pStateVars->clearInput) { 874 | 875 | /* Clear all the previous data in the message content pointed to by msgPtr. */ 876 | memset(pStateVars->msgPtr->content, 0, MAX_MESSAGE_LENGTH); 877 | 878 | pStateVars->inputIdx = 0; // Return index to 0 for new message 879 | pStateVars->clearInput = false; // Reset flag 880 | 881 | Serial.println(" | Message cleared."); 882 | } 883 | 884 | // Assign incoming char to a message if there is still room 885 | if (pStateVars->inputIdx < MAX_MESSAGE_LENGTH - 1) { 886 | 887 | pStateVars->msgPtr->content[pStateVars->inputIdx] = char(remappedKey); 888 | pStateVars->inputIdx++; 889 | 890 | Serial.print(char(remappedKey)); 891 | 892 | /* If you have come to the end of the msg content, 893 | add a visual indicator to let the user know. */ 894 | } else if (pStateVars->inputIdx == MAX_MESSAGE_LENGTH - 1) { 895 | pStateVars->msgPtr->content[pStateVars->inputIdx] = '<'; 896 | pStateVars->inputIdx++; 897 | 898 | Serial.print(" | You've Reached the end of Input Index->"); 899 | Serial.println(pStateVars->inputIdx); 900 | } 901 | } // Close switch-case 902 | } // Close if Command/printable key 903 | } // Close if keyboard input available 904 | } // Close getUserInput 905 | 906 | /* Function: displayKeyboardInput 907 | * ------------------------- 908 | * Display keyboard input as it is typed as new display text comes in 909 | * 910 | * struct StateVars* pStateVars: state variables used for managing input and display 911 | * 912 | * returns: void 913 | */ 914 | void displayKeyboardInput(struct StateVars* pStateVars) { 915 | 916 | if (pStateVars->bufferChange && (pStateVars->state == GET_USER_INPUT || pStateVars->state == UPDATE_SYS_MSG)) { 917 | displayMsg(pStateVars->msgPtr->content, pStateVars->inputIdx); 918 | } 919 | } 920 | 921 | /*************************************************************************/ 922 | /******* SETUP ******************************************************/ 923 | /*************************************************************************/ 924 | void setup(void) { 925 | 926 | Serial.begin(9600); 927 | 928 | delay(3000); 929 | Serial.println("ChatGPTuino. A terminal for interacting with OpenAI."); 930 | Serial.println("Setup Started..."); 931 | 932 | // Keyboard setup 933 | keyboard.begin(DATAPIN, IRQPIN); 934 | keyboard.setNoBreak(1); // No break codes for keys (when key released) 935 | keyboard.setNoRepeat(1); // Don't repeat shift, ctrl, etc 936 | keymap.selectMap((char*)"US"); // Select the country for your type of keyboard (only tested on US) 937 | 938 | // WiFi Setup 939 | WiFi.begin(ssid, password); 940 | 941 | while (WiFi.status() != WL_CONNECTED) { 942 | delay(500); 943 | Serial.print("."); 944 | } 945 | 946 | Serial.print("WiFi connected to IP address: "); 947 | Serial.println(WiFi.localIP()); 948 | 949 | // Display Setup 950 | u8g2.begin(); 951 | // This Font size is optimized for 128 x 64 px screen sizes. 952 | u8g2.setFont(u8g2_font_6x13_tf); //https://github.com/olikraus/u8g2/wiki/fntlist12 953 | 954 | // Show a face and message, and then instructions. 955 | displayFace(BOOT_ALERT_INTERVAL, BootScreenMsg); 956 | displayMsg((char*)WelcomeInstructionsAlert, ALERT_MSG_LENGTH); 957 | 958 | Serial.println("...Setup Ended"); 959 | } 960 | 961 | /*************************************************************************/ 962 | /******* LOOP ******************************************************/ 963 | /*************************************************************************/ 964 | void loop(void) { 965 | 966 | // Keep track of the state variables (see definition above for more details of each member) 967 | static StateVars stateVars = { 968 | GET_USER_INPUT, // state - the current state 969 | 0, // msgCount - total number of messages 970 | 0, // inputIndex - where is the cursor 971 | false, // clearInput - flag to clear msgPointer contents and reset inputIndex 972 | 0 // displayOffset - adjusts index of response shown on display when using up and down arrows 973 | }; 974 | 975 | /* When a user types text, it will be recorded in either the message array, or the systemMessage. 976 | Every time through the loop, check the state, and point msgPtr appropriately */ 977 | stateVars.msgPtr = (stateVars.state == GET_USER_INPUT) 978 | ? &messages[stateVars.msgCount % MAX_MESSAGES] // This implements the circular nature of the messages array 979 | : &systemMessage; 980 | 981 | stateVars.bufferChange = false; // Blocks text from being re-displayed if there is nothing new to show 982 | 983 | /*********** GET USER INPUT *************************************************/ 984 | getUserInput(&stateVars); 985 | 986 | /*********** GET RESPONSE FROM OPEN_AI ***************************************/ 987 | getResponse(&stateVars); 988 | 989 | /*********** DISPLAY USER KEYBOARD INPUT AS IT IS TYPED **********************/ 990 | displayKeyboardInput(&stateVars); 991 | 992 | /*********** DISPLAY AGENT RESPONSE ******************************************/ 993 | displayResponse(&stateVars); 994 | 995 | } // close void loop -------------------------------------------------------------------------------- /chatGPTuino_turbo/credentials.h: -------------------------------------------------------------------------------- 1 | #ifndef Credentials_h 2 | #define Credentials_h 3 | 4 | /* Keep all these private */ 5 | const char* ssid = "Under_Ground_Layer"; // Change to your WiFi Network name 6 | const char* password = "mwahahaha"; // Change to your password 7 | const char* openAI_Private_key = ""; // your private OpenAi API Key 8 | 9 | /* OpenAI API endpoint root certificate used to ensure response is actually from OpenAPI 10 | 11 | TROUBLESHOOTING: If you get the "Could not connect to server. Trying again." 12 | message in the serial monitor, you may want to check that this root certificate below has not expired. 13 | */ 14 | const char* rootCACertificate = 15 | "-----BEGIN CERTIFICATE-----\n" 16 | "MIICCTCCAY6gAwIBAgINAgPlwGjvYxqccpBQUjAKBggqhkjOPQQDAzBHMQswCQYD\n" 17 | "VQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIG\n" 18 | "A1UEAxMLR1RTIFJvb3QgUjQwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAw\n" 19 | "WjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2Vz\n" 20 | "IExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQwdjAQBgcqhkjOPQIBBgUrgQQAIgNi\n" 21 | "AATzdHOnaItgrkO4NcWBMHtLSZ37wWHO5t5GvWvVYRg1rkDdc/eJkTBa6zzuhXyi\n" 22 | "QHY7qca4R9gq55KRanPpsXI5nymfopjTX15YhmUPoYRlBtHci8nHc8iMai/lxKvR\n" 23 | "HYqjQjBAMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW\n" 24 | "BBSATNbrdP9JNqPV2Py1PsVq8JQdjDAKBggqhkjOPQQDAwNpADBmAjEA6ED/g94D\n" 25 | "9J+uHXqnLrmvT/aDHQ4thQEd0dlq7A/Cr8deVl5c1RxYIigL9zC2L7F8AjEA8GE8\n" 26 | "p/SgguMh1YQdc4acLa/KNJvxn7kjNuK8YAOdgLOaVsjh4rsUecrNIdSUtUlD\n" 27 | "-----END CERTIFICATE-----\n"; 28 | 29 | #endif -------------------------------------------------------------------------------- /chatGPTuino_turbo/debug.cfg: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-or-later 2 | # 3 | # Example OpenOCD configuration file for ESP32-S2 Kaluga board. 4 | # 5 | # For example, OpenOCD can be started for ESP32-S2 debugging on 6 | # 7 | # openocd -f board/esp32s2-kaluga-1.cfg 8 | # 9 | 10 | source [find interface/ftdi/esp32s2_kaluga_v1.cfg] 11 | source [find target/esp32s2.cfg] 12 | -------------------------------------------------------------------------------- /chatGPTuino_turbo/debug_custom.json: -------------------------------------------------------------------------------- 1 | { 2 | "name":"Arduino on ESP32-S2", 3 | "toolchainPrefix":"xtensa-esp32s2-elf", 4 | "svdFile":"esp32s2.svd", 5 | "request":"attach", 6 | "postAttachCommands":[ 7 | "set remote hardware-watchpoint-limit 2", 8 | "monitor reset halt", 9 | "monitor gdb_sync", 10 | "thb setup", 11 | "c" 12 | ], 13 | "overrideRestartCommands":[ 14 | "monitor reset halt", 15 | "monitor gdb_sync", 16 | "thb setup", 17 | "c" 18 | ] 19 | } -------------------------------------------------------------------------------- /dynamic-JSON-doc-size-testing.txt: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | MAX_MESSAGE_LENGTH 375 3 | MAX_MESSAGES 20 4 | ArduinoJSON Assistant recommended size: 12288 bytes 5 | https://arduinojson.org/v6/assistant/ 6 | ************************************************************************/ 7 | 8 | { 9 | "model": "gpt-3.5-turbo", 10 | "messages": [ 11 | { 12 | "role": "user", 13 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 14 | }, 15 | { 16 | "role": "user", 17 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 18 | }, 19 | { 20 | "role": "user", 21 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 22 | }, 23 | { 24 | "role": "user", 25 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 26 | }, 27 | { 28 | "role": "user", 29 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 30 | }, 31 | { 32 | "role": "user", 33 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 34 | }, 35 | { 36 | "role": "user", 37 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 38 | }, 39 | { 40 | "role": "user", 41 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 42 | }, 43 | { 44 | "role": "user", 45 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 46 | }, 47 | { 48 | "role": "user", 49 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 50 | }, 51 | { 52 | "role": "user", 53 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 54 | }, 55 | { 56 | "role": "user", 57 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 58 | }, 59 | { 60 | "role": "user", 61 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 62 | }, 63 | { 64 | "role": "user", 65 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 66 | }, 67 | { 68 | "role": "user", 69 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 70 | }, 71 | { 72 | "role": "user", 73 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 74 | }, 75 | { 76 | "role": "user", 77 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 78 | }, 79 | { 80 | "role": "user", 81 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 82 | }, 83 | { 84 | "role": "user", 85 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 86 | }, 87 | { 88 | "role": "user", 89 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 90 | } 91 | ] 92 | } 93 | 94 | 95 | /*********************************************************************** 96 | MAX_MESSAGE_LENGTH 375 97 | MAX_MESSAGES 17 98 | ArduinoJSON Assistant recommended size: 8192 bytes 99 | https://arduinojson.org/v6/assistant/ 100 | ************************************************************************/ 101 | 102 | { 103 | "model": "gpt-3.5-turbo", 104 | "messages": [ 105 | { 106 | "role": "user", 107 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 108 | }, 109 | { 110 | "role": "user", 111 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 112 | }, 113 | { 114 | "role": "user", 115 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 116 | }, 117 | { 118 | "role": "user", 119 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 120 | }, 121 | { 122 | "role": "user", 123 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 124 | }, 125 | { 126 | "role": "user", 127 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 128 | }, 129 | { 130 | "role": "user", 131 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 132 | }, 133 | { 134 | "role": "user", 135 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 136 | }, 137 | { 138 | "role": "user", 139 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 140 | }, 141 | { 142 | "role": "user", 143 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 144 | }, 145 | { 146 | "role": "user", 147 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 148 | }, 149 | { 150 | "role": "user", 151 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 152 | }, 153 | { 154 | "role": "user", 155 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 156 | }, 157 | { 158 | "role": "user", 159 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 160 | }, 161 | { 162 | "role": "user", 163 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 164 | }, 165 | { 166 | "role": "user", 167 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 168 | }, 169 | { 170 | "role": "user", 171 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 172 | } 173 | ] 174 | } 175 | 176 | 177 | /*********************************************************************** 178 | MAX_MESSAGE_LENGTH 375 179 | MAX_MESSAGES 13 180 | ArduinoJSON Assistant recommended size: 6144 bytes 181 | https://arduinojson.org/v6/assistant/ 182 | ************************************************************************/ 183 | 184 | { 185 | "model": "gpt-3.5-turbo", 186 | "messages": [ 187 | { 188 | "role": "user", 189 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 190 | }, 191 | { 192 | "role": "user", 193 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 194 | }, 195 | { 196 | "role": "user", 197 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 198 | }, 199 | { 200 | "role": "user", 201 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 202 | }, 203 | { 204 | "role": "user", 205 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 206 | }, 207 | { 208 | "role": "user", 209 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 210 | }, 211 | { 212 | "role": "user", 213 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 214 | }, 215 | { 216 | "role": "user", 217 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 218 | }, 219 | { 220 | "role": "user", 221 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 222 | }, 223 | { 224 | "role": "user", 225 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 226 | }, 227 | { 228 | "role": "user", 229 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 230 | }, 231 | { 232 | "role": "user", 233 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 234 | }, 235 | { 236 | "role": "user", 237 | "content": "ZdEptCph91FtqMG0N67mocyq73UtEeCdRpRYTEbO9WCAG1R4FDMtjJelZIKs89n7STYKyPd8CowEzknX4GJ4lgNYGnnXx8gNtJ4noloE3fPXdifLrVlXZzlsoSg15T3koF9fL10hUNpM0BG3uvQrqHWuPC5nDLEVbcYXPDL9tB7EREkjKnBpQdQDywg222zT6dgVV2diuhktvHEsIsSZkAeri8e7u4R8AyeL1ZMpTekLfPZ9bH5Srkt2C6Wd5uwtzFnNtdGOlLJ6CSJeWQDnsnzO6JuKweRonLEodAmfdT876QsC36EHXOuszIW3O329H0qJJERvyQJvrDYtO93an213JsVT1bG0zVlkuWDMaKUJL0oeIpEX2uA" 238 | } 239 | ] 240 | } 241 | --------------------------------------------------------------------------------