Re: [Amforth] I2C Generic

2018-11-11 Thread Jan Kromhout
Hi, A general question. When I won’t to write I should put a “0” behind the address. Should I do it by hand, or are the words clever enough to do this? My address => $38 = %0111000 After shifting => %111 = $70 Cheers, Jan Op 10 nov. 2018, om 21:23 heeft Tristan Williams

Re: [Amforth] I2C Generic

2018-11-10 Thread Jan Kromhout
Tristan, I have tried that. No results. Monday I get an Logic Analyser so I can watch the I2C bus. Hopefully can I figure out what is wrong. Cheers, Jan > Op 10 nov. 2018, om 21:23 heeft Tristan Williams het > volgende geschreven: > > Jan, > >> This device is need only one byte per

Re: [Amforth] I2C Generic

2018-11-10 Thread Tristan Williams
Jan, > This device is need only one byte per command, so I have used i2c.c!. > Do you ave a clou? but it might be expecting two single bytes, one immediately after the other. Try Number digit 2 7SEG i2c.n! Best wishes, Tristan On 10Nov18 17:27, Jan Kromhout via Amforth-devel wrote: >

Re: [Amforth] I2C Generic

2018-11-10 Thread Erich Wälde
Hello Jan, > The i2c scanner is seeing $38, should i still shift to $70? Don't be afraid of just trying this. There is nothing that breaks, if you happen to use a different i2c address. So I dont' think so, but let me check > | $ ls -l /dev/ttyUSB0 > | crw-rw 1 root dialout 188, 0

Re: [Amforth] I2C Generic

2018-11-10 Thread Jan Kromhout via Amforth-devel
Tristan, This is my simple code. The address of the SA1064 is $38 I have checked with the arduino for save playing the frequency of the bus should be less than 100 kHz. When I translate the simple code of the arduino to amForth I get this, but no results. Even no results with deleting the

Re: [Amforth] I2C Generic

2018-11-10 Thread Tristan Williams
Jan, Have a look at the source your-amforth/common/lib/hardware/i2c.frt and the comments at the top of the file. i2c.c! i2c.c@ i2c.n! i2c.n@ i2c.m!n@ already have the i2c.begin and i2c.end within the respective word. I don't know the Gravitech shield but if you are sending multiple bytes i2c.n!

Re: [Amforth] I2C Generic

2018-11-09 Thread Jan Kromhout
Hello Erich, The i2c scanner is seeing $38, should i still shift to $70? Cheers Jan Verstuurd vanaf mijn iPad > Op 9 nov. 2018 om 22:30 heeft Jan Kromhout via Amforth-devel > het volgende geschreven: > > Thanks Erich, > > Do I need this to start every time I use I2C > >

Re: [Amforth] I2C Generic

2018-11-09 Thread Jan Kromhout via Amforth-devel
Thanks Erich, Do I need this to start every time I use I2C i2c.init.default Cheers, Jan > Op 9 nov. 2018, om 20:56 heeft Erich Wälde het volgende > geschreven: > > Hello Jan, > > your i2c address: "$38", is this the 7bit address? You might > need to shift it by one position to "$70". >

Re: [Amforth] I2C Generic

2018-11-09 Thread Erich Wälde
Hello Jan, your i2c address: "$38", is this the 7bit address? You might need to shift it by one position to "$70". Just an idea. Cheers, Erich Jan Kromhout writes: > Hi, > > This is my first step on the I2C road. > I have a Gravitech shield for the Arduino, that work well. > The code is very