molecule
BQ25792 Charger
Public Made by Adomby adom
Buck-boost 1S-4S battery charger board (TI BQ25792) with 14 Adom machine pins, by Adonis
← Commit history
readme viewer: add lights (bundle only lights the scene inside its own loadModel; PBR renders black otherwise)
3 files changed
+22−4
package.json+1−1@@ -2,7 +2,7 @@ "slug": "bq25792-charger", "title": "BQ25792 Charger", "type": "component",- "version": "0.1.19",+ "version": "0.1.20", "description": "BQ25792 Charger - buck-boost 1S-4S battery charger board by Adonis, with real 3D copper traces and measured stackup.", "tags": [ "hardware"
page.json+10−3@@ -4,9 +4,16 @@ "slug": "bq25792-charger", "title": "BQ25792 Charger", "brief": "Buck-boost 1S-4S battery charger board (TI BQ25792) with 14 Adom machine pins, by Adonis",- "version": "0.1.19",+ "version": "0.1.20", "tags": [- "hardware"+ "adom",+ "adom-modular",+ "component",+ "charger",+ "battery",+ "bq25792",+ "power",+ "usb-c" ], "license": "proprietary", "component": {@@ -49,7 +56,7 @@ "email": "[email protected]" }, "visibility": "public",- "description": "BQ25792 Charger - buck-boost 1S-4S battery charger board by Adonis, with real 3D copper traces and measured stackup.",+ "description": "BQ25792 Charger - a buck-boost 1S-4S battery charger board (Texas Instruments BQ25792) designed by Adonis in Fusion 360, with 14 Adom machine pins for the modular stack. Interactive colored 3D model, schematic and layout views.", "dependencies": {}, "files": [ "README.md",
readme.html+11@@ -175,6 +175,17 @@ exported bodies + design rules.</p> } }catch(e){} },200);+ // The bundle creates its lights/environment inside its own loadModel - light the+ // scene ourselves (PBR is black without any light or environment).+ try{+ var sc3=viewer.getScene();+ if(sc3.lights.length===0){+ var B=window.BABYLON;+ var h=new B.HemisphericLight("rm_hemi",new B.Vector3(0.3,0.3,1),sc3); h.intensity=1.1;+ var d1=new B.DirectionalLight("rm_key",new B.Vector3(-0.5,-0.6,-1),sc3); d1.intensity=1.4;+ var d2=new B.DirectionalLight("rm_fill",new B.Vector3(0.7,0.4,-0.6),sc3); d2.intensity=0.6;+ }+ }catch(e){} setStatus(which+" view"); busy=false; }).catch(function(err){ setStatus("load failed: "+((err&&err.message)||"unknown")); busy=false; });