On 11/02/17 09:12, Colin Reese wrote: > If you could point me to a known working hardware/software configuration on > or offline I would be quite grateful. > > Thanks, > Colin > Ok, so here is a pretty much copy-paste solution which should work:
I'm running with a Mega88 with the internal 8Mhz RC. I have a custom file "mydevices.cfg" [1] in the moat source dir. I build & program the device with make CFG=mydevices.cfg burn_mymoat Or, to just test build: skip burn_ prefix avrdude is used to program via an Avr-ISPmkII. python3 is required for Cfg the regular AVR stack is required (avr-gcc, avr-objcopy etc) The first time you run the command it will allocate a random ID and add "onewire_id" to the cfg file. Hope this can help you get started! /Johan [1] mydevices.cfg: _include: world.cfg env: prog: avrispmkii -P usb avrdude: avrdude devices: _default: _ref: defaults.target.m88 types: _ref: defaults.types code: [] mymoat: _ref: defaults.target.m88 _doc: Mega88PU-A with 8Mhz RC types: port: 12 adc: 9 status: 1 port: # See world.cfg for what the ^ and * etc symbols mean! 1: B2^* # Green LED (low to light) 2: B1^* # Red LED (low to light) 3: B0_* 4: D7~+* 5: D6_* # Unused 6: D5_* # Unused 7: B7_* # Unused 8: B6_* # Unused 9: D4_* # Unused 10: D3_* # Unused # # D2 is 1W 11: D1_* # Unused 12: D0_* # Unused # PC6 is reset, already has external pull-up # PC0-PC5 + ADC6-7 are used as ADC. No pullup necessary unused: [B5,B4,B3] adc: 1: 0* 2: 1* 3: 2* 4: 3* 5: 4* 6: 5* 7: 6* 8: 7* 9: T-* # temperature ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers