Search found 22 matches
- Fri Oct 13, 2017 4:37 pm
- Forum: General Discussion and Questions
- Topic: How is the HTML generated/overridden?
- Replies: 12
- Views: 7871
Re: How is the HTML generated/overridden?
@deshipu, You were absolutely correct regarding the browser. I ran a test using three(3) different browsers, and each one generated their own HTML interpretation of "Content-Type: image/jpeg". So, that mystery is resolved. What you can do is serve your own HTML on one address, and have it embed a di...
- Thu Oct 12, 2017 7:00 am
- Forum: General Discussion and Questions
- Topic: How is the HTML generated/overridden?
- Replies: 12
- Views: 7871
Re: How is the HTML generated/overridden?
the HTML is there in plain text. Hi Peter, What you saw in the code are just the HTTP headers. I'm looking to customize/override the HTML body; which is implicitly generated when the JPEG images are streamed. For instance, when I open the "inspect element" option of the browser to check the code se...
- Thu Oct 12, 2017 6:40 am
- Forum: MicroPython pyboard
- Topic: Camera integration
- Replies: 13
- Views: 16631
- Wed Oct 11, 2017 8:31 pm
- Forum: General Discussion and Questions
- Topic: How is the HTML generated/overridden?
- Replies: 12
- Views: 7871
Re: How is the HTML generated/overridden?
Then I guess you are on the same page like the OpenMV folks.deshipu wrote:That's because usocket doesn't generate any HTML.
- Wed Oct 11, 2017 5:36 pm
- Forum: General Discussion and Questions
- Topic: How is the HTML generated/overridden?
- Replies: 12
- Views: 7871
Re: How is the HTML generated/overridden?
I did, but unfortunately they don't know how the usocket generates the html in runtime or if it can be overridden.deshipu wrote:I think you will get much better answers at http://forums.openmv.io/
http://forums.openmv.io/viewtopic.php?f=6&t=470
- Wed Oct 11, 2017 7:50 am
- Forum: General Discussion and Questions
- Topic: How is the HTML generated/overridden?
- Replies: 12
- Views: 7871
How is the HTML generated/overridden?
I'd like to customize the HTML page generated by this OpenMV mjpeg_streamer.py example, but I cannot figure out how it generates the HTML code or how to customize it (e.g. add a button to the page). Does anyone know how to do that? https://github.com/openmv/openmv/blob/943f19ae5d12cedeeb35f8250ea039...
- Wed Jan 18, 2017 8:58 pm
- Forum: MicroPython pyboard
- Topic: machine.I2C
- Replies: 16
- Views: 19243
Re: machine.I2C
It's also 0x29 (41 in hexadecimal is 0X29). I'm going to try to run it at a slower frequency (as Dave suggested) to see if that works.
Code: Select all
>>> from machine import I2C, Pin
>>> i2c = I2C(sda=Pin('P5'), scl=Pin('P4'))
>>> print(i2c.scan())
[41]
>>>
- Wed Jan 18, 2017 4:59 pm
- Forum: MicroPython pyboard
- Topic: machine.I2C
- Replies: 16
- Views: 19243
Re: machine.I2C
Thank you both for the clarification. That really helped. I'm actually using the OpenMV board (M4); which doesn't use the latest Micropython firmware. Therefore, this is the constructor that works for me: i2c = I2C(sda=Pin('P5'), scl=Pin('P4')) I'm trying to adapt Radomir's vl6180.py driver for the ...
- Wed Jan 18, 2017 4:13 pm
- Forum: MicroPython pyboard
- Topic: i2c init problem
- Replies: 6
- Views: 7672
- Wed Jan 18, 2017 8:29 am
- Forum: MicroPython pyboard
- Topic: i2c init problem
- Replies: 6
- Views: 7672
Re: i2c init problem
[quote="shaoziyang"][quote="inaugurator"]
>>> i2c=I2C(sda=Pin('B7'),scl=Pin('B6'))[/quote]
Shouldn't scl be the first parameter and sda the second?
http://docs.micropython.org/en/latest/p ... achine.I2C
>>> i2c=I2C(sda=Pin('B7'),scl=Pin('B6'))[/quote]
Shouldn't scl be the first parameter and sda the second?
http://docs.micropython.org/en/latest/p ... achine.I2C