#ATtiny8x7 breakout question
1 messages ยท Page 1 of 1 (latest)
Threading!
Ok, so SCL and SDA. The pins.
@viral sphinx oh tagging you, in case the thread isn't obvious.
Ok, SCL/SDA. Not the STEMMA connectors.
Are they clock and data pins for I2C?
๐
Or are they something else technically?
They're vaguely called "address pins" in the product copy
so I'm now second guessing my pinouts explanation
one sec. let me look.
there are address pins and an interrupt pin
that explains why no digital io on 14/15/16 (i think)
i think on pin numbers...but can check
yep. those are special pins.
could probably argue silk should be something other than the numbers
15 = INT
16 = ADDR0
17 = ADDR1
Oh ok
so like the ADR pins on the original board?
16 / AD0 - this is the ADDR0 pin. Connect this to ground to increment the devices I2C address by 1.
17 / AD1 - this is the ADDR1 pin. Connect this to ground to increment the devices I2C addres by 2.
or...?
I don't even know what that means, heh
i think that info is original guide?
they probably add to a base value
at least I know I have it wrong so far
meh, it's same verbiage there:
https://learn.adafruit.com/adafruit-seesaw-atsamd09-breakout/pinouts#address-pins-2936980-3
Yeah that's what I pasted above
from that spot in the original guide
Ok, thanks Carter. I'll see to updating the pinout explanations.
it'd be worth having a little table or something to just say what they are
ok...looking at SCL/SDA pins now...one sec...
I'm doing the same style pinouts page as original
they're just the same pins as the stemma connector
No they're not...
STEMMA is 10 and 11
so says product copy I think
That's what made me ask
i'm looking at pcb in eagle
it's like other STEMMA breakouts
you can use either the STEMMA connector or the headers
Ok ok ok ok
Two STEMMA QT I2C connectors with 10K pullup resistors, connected to pins 10 and 11
That's not right
it's 11 and 12.
According to the schematic
but there's all kinds of problems with that product copy
I'll need to get Limor a list.
the numbers may be the arduino pin numbers
checking
11/12 are the phyiscal pin numbers on the JP3 header
16/15 physical pins on the attiny
Isn't that what I should be listing is the silk?
oi.
(forgot for a moment this is a public thread.)
the arduino core is what maps these to different numbers
Then what is CircuitPython doing?
Yes
and PA01 etc
Yes
here's an example from the SAMD core
for feather m4
0 would be the first entry in that table
Yeah.
1 the next, etc
so somewhere there's a similar thing for the attiny8x7 that maps PA01 (phyiscal pin 24) to 18
at least i think there is
and in there, the SCL/SDA pins would be the 10 and 11 entries in the table
thus the product page verbiage
(this is my guess)
can wait a bit. let me look a little more.
but the PCB file doesn't lie in terms of what the SCL/SDA pins are attached to - so they are just the STEMMA connector pins broken out again
Ok.
So you could use the pins to connect to a micro
if you wanted
like any other breakout
yep. don't need to use the STEMMA connector.
ok
yep. like other breakouts.
not going to show that
just options
but trying to understand
wait
it's flashed with seesaw firmware
that's what must be mapping things
correct
but the firmware is just an arduino sketch
oh seriously?
the core is used to build the sketch
ok..
there's very little code there, since all the work is down in the other files
the hack being done is putting code in header files
i think she mentioned this on a desk-of way back
Ah
it's just a C compiler limitation hack thing
because there's a desire to be able to configure things via #defines
like at the top of the sketch
Oh she pasted this code to me earlier. Or rather four lines of it.
and then just build and be done
but...there are C quirk things...so the hack (code in header files)
right
hmm yeah.
I mean, should I ask Limor what pins she wants used on the pinouts page? Silk or ATtiny? Or is that a red herring on my part
the one .cpp there is just to keep the compiler happy. it's just an empty shell essentially.
Looking at the product copy
for the other types of pins listed
looks like silk.
Oh there's separate addr selection pins: 2 x I2C address selection pins - pins 16 and 17
yep. silk is the arduino numbers.
But like, activity LED, pin 5.
18 for example
Ok, I'll use silk then.
Which I guess means not pointing out what pins SCL/SDA are even connected to in the first place.
I'm confused
They're SCL/SDA on the silk. I don't explain that pin 20 is 3........
So why go further with those two?
let me read those other "uses" (the 3 in 1 stuff)
oki
you could use it as either an I2C controller or peripheral with plug-and play support
hmm....not sure i've looked into what the "controller" option here is
So I should list all of the ATtiny pins?
That's what's confusing me at this moment. Why only SCL/SDA?
they may come into play when used as a controller....but not sure
hmm
ok
I think Limor expects folks to use it as a seesaw
but she made it so she could use it for other things.
Is my guess from the tone of the copy
yah, i understand use case 1 and 2, but not 3
um
I guess you could use it as an ATtiny817 micro with an I2C sensor wired up to it?
controller vs peripheral
Have to power it via throughhole but ...
I think that's what it means?
could be. that implies you'd load your own firmware. which may be. the UPDI pin is broken out.
It says you can do whatever you want with it at the bottom
there's a core listed there.
hah
Guess I could have read more carefully
compiled using the megaTinyCore
I kind of checked out by the end of the seesaw pins
I found that core when searching, but figured I was off base
guess not
Ok, so at this point, I guess I have a better question to ask Limor - do you want me to list both the silk pins and the ATtiny pins, or only the silk pins?
Or are we still figuring this out
I mean I feel like at this point it comes down to what folks are going to do with this thing
ok
I'll go with that then.
but i think worth asking limor exactly what (where) the megaTinyCore she used is
and link it in guide
only seeing link to the sketch
ooohhh...ok...see it
Screenshot took too long
text is odd
My computer likes to take arbitrary amounts of time to save screenshots, up to 5 minutes. It's great.
Ok
mac?
Yep.
I can get rid of the delay entirely
but not make it be quick like it used to be
Gets better after reboots, but then does this oscillating timing thing...
Over time.
Oh ho.
They're sort of right?
LED is on 5 on this one...
or
looks
nm.
wait
Yes I'm right.
LED Is on 5 on the silk.
pin 6 of the connector... but I don't think that's what it's referring to?
yah, ignore that LED
oki
I guess the rest follows
I mean, it's not as bad as RP2040, but it's getting there.
oops, address selection pins not mentioned.
Not sure how to tell which is which.
and which does which
Assume they're the same?
and paste it from the original?
nothing coming up in the datasheet.
for addr0, ad0
the address and interrupt are entirely seesaw features
for the attiny arduino core, they are just gpio
it's in the sketch
^^ yep
3 addresses, so yah, it's like a 2 bit number that gets added to the base address
No idea if that note about speed is useful, but it's accurate. So... eh.
Figure someone will complain at some point without it. Limor can delete it if she doesn't like it. ๐
yep. just copy pasta the address description for now. like it doesn't mention grounding both to increment by 3.
but neither did the other guide
you may want to mention that 15/16/17 can not be used as GPIO
worth a callout even probably
I made a note after the GPIO pins section.
It's not colored
should I make it an alert?
Note that pins 15, 16 and 17 can NOT be used as GPIO pins! with the seesaw firmware
it's only an issue with the seesaw firmware
Oh right
they could be GPIO if someone wanted to do option 3
i'd make it color box
blue already
given the silk doesn't indicate it
pinout page looks good
This chip seems like a better option than the SAMD09. Pin-wise anyway. No reset button might be annoying....
Thank you
whew.
You were immensely helpful, I really appreciate it
sure. np.
One of these days I'll be in your neck of the woods, and I owe you a beverage of your choice.
i learned to. finally figured out where the core being used was.
excellent.
yeah BOYC!