arminjo / attinyserialout Goto Github PK
View Code? Open in Web Editor NEWMinimal bit-bang send serial 38400/115200 baud for 1MHz or 115200/230400 baud for 8 or 16MHz ATtiny clock
License: GNU General Public License v3.0
Minimal bit-bang send serial 38400/115200 baud for 1MHz or 115200/230400 baud for 8 or 16MHz ATtiny clock
License: GNU General Public License v3.0
When I include this library first, before any of these libraries, I get the below errors, can these be fixed such that this doesn't happen? Note that I did find that if I include this ATtinySerialOut library after these other libraries the issue goes away, so it seems related to definitions somehow.
Libraries incompatible:
wire.h - ATTinyCore I2C library
Adafruit_PFC8574 (which uses Adafruit BusIO)
In file included from C:\Users\user\Documents\Arduino\EEPROMRead\eepromread.ino\eepromread.ino.ino:6:0:
C:\Users\user\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\libraries\Wire\src/Wire.h:101:18: error: type 'TinySerialOut' is not a base type for type 'TwoWire'
using Print::write;
^~~~~
In file included from c:\Users\user\Documents\Arduino\libraries\Adafruit_PCF8574/Adafruit_PCF8575.h:21:0,
from C:\Users\user\Documents\Arduino\EEPROMRead\eepromread.ino\eepromread.ino.ino:9:
c:\Users\user\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_BusIO_Register.h:74:26: error: could not convert '& SerialOut' from 'TinySerialOut*' to 'Stream*'
void print(Stream *s = &Serial);
c:\Users\user\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_BusIO_Register.h:75:28: error: could not convert '& SerialOut' from 'TinySerialOut*' to 'Stream*'
void println(Stream *s = &Serial);
Easily Replicate:
#include <Arduino.h>
#include "ATtinySerialOut.hpp"
#include <Wire.h>
#include <Adafruit_PCF8575.h>
void setup(void) {
}
void loop(void) {
}
Hi, great work!
Is it possible to send from your library a sequence for clear the terminal?
I want something similar to:
Serial.write(27); //ESC command
Serial.print("[2J"); //clear screen command
Serial.write(27);
Serial.print("[H"); //cursor to home command
But I can't make it work.
How can I achieve it?
Regards!
Hi @ArminJo, this is a great repo! I'm wondering if this is possible to use via USB on digispark tiny, similar to digiCDC library (which doesn't work anymore). Thank you.
Error:
https://justpaste.it/7cax9
System: Windows 10 64 bit
Arduino version: latest (1.8.19)
ATtinySerialOut version: latest (2.0.0)
Enhancement:
It would be very nice to have a way to change the TX pin without having to change the header file itself e.g., by providing it as a parameter to the initTXPin() method.
Cannot getting it working on ATtiny88@8MHz(internal) + ATTinyCore 1.5.2
I must do something wrong, here is my code :
#include <Arduino.h> // required for main()
#define TX_PIN PIN_PC1
#include "ATtinySerialOut.hpp"
void setup()
{
initTXPin();
}
void loop()
{
writeString("TEST\n");
delay(1000);
}
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.